kernel-fxtec-pro1x/drivers/net/e1000e
Linus Torvalds 95b866d5af e1000e: Fix incorrect debug warning
Doing 'WARN_ON(preempt_count())' was horribly horribly wrong, and would
cause tons of warnings at bootup if PREEMPT was enabled because the
initcalls currently run with the kernel lock, which increments the
preempt count.

At the same time, the warning was also insufficient, since it didn't
check that interrupts were enabled.

The proper debug function to use for something that can sleep and wants
a warning if it's called in the wrong context is 'might_sleep()'.

Reported-by: Christian Borntraeger <borntraeger@de.ibm.com>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
2008-10-03 09:18:17 -07:00
..
82571.c
defines.h e1000e: test for unusable MSI support 2008-08-14 04:42:29 -04:00
e1000.h e1000e: drop stats lock 2008-10-02 18:28:12 -07:00
es2lan.c
ethtool.c e1000e: remove phy read from inside spinlock 2008-10-02 18:28:12 -07:00
hw.h
ich8lan.c e1000e: Fix incorrect debug warning 2008-10-03 09:18:17 -07:00
lib.c
Makefile
netdev.c e1000e: update version from k4 to k6 2008-10-02 18:28:13 -07:00
param.c e1000e: write protect ICHx NVM to prevent malicious write/erase 2008-10-01 17:31:25 -07:00
phy.c