android_kernel_motorola_sm6225/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 e1000e: cleanup several stats issues 2008-04-25 02:07:11 -04:00
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 e1000e: Fix HW Error on es2lan, ARP capture issue by BMC 2008-04-25 02:07:12 -04:00
ethtool.c e1000e: remove phy read from inside spinlock 2008-10-02 18:28:12 -07:00
hw.h e1000e: Add support for BM PHYs on ICH9 2008-05-06 12:04:14 -04:00
ich8lan.c e1000e: Fix incorrect debug warning 2008-10-03 09:18:17 -07:00
lib.c e1000e: rename a few functions 2008-04-16 20:41:37 -04:00
Makefile e1000e: reformat comment blocks, cosmetic changes only 2008-03-28 22:14:56 -04:00
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 e1000e: Add support for BM PHYs on ICH9 2008-05-06 12:04:14 -04:00