diff options
| author | 2009-05-07 19:58:55 -0400 | |
|---|---|---|
| committer | 2009-05-07 20:01:11 -0400 | |
| commit | 74f4fd21664148b8c454cc07bfe74e4dd51cf07b (patch) | |
| tree | fa4074dff8913c25a9192c65c112de25cf07fbf4 /include/linux/errqueue.h | |
| parent | ring-buffer: add total count in ring-buffer-benchmark (diff) | |
ring-buffer: change WARN_ON from checking preempt_count to preemptible
There's a WARN_ON in the ring buffer code that makes sure preemption
is disabled. It checks "!preempt_count()". But when CONFIG_PREEMPT is not
enabled, preempt_count() is always zero, and this will trigger the warning.
[ Impact: prevent false warning on non preemptible kernels ]
Signed-off-by: Steven Rostedt <rostedt@goodmis.org>
Diffstat (limited to 'include/linux/errqueue.h')
0 files changed, 0 insertions, 0 deletions
