kernel_optimize_test/drivers
Abhay Salunke 2c5608404e [PATCH] dell_rbu: fix Bug 5854
This fixes http://bugzilla.kernel.org/show_bug.cgi?id=5854

Root cause:

The dell_rbu driver creates entries in /sys/class/firmware/dell_rbu/ by
calling request_firmware_nowait (without hotplug ) this function inturn
starts a kernel thread which creates the entries in
/sys/class/firmware/dell_rbu/loading , data and the thread waits on the
user action to return control back to the callback fucntion of dell_rbu.
The thread calls wait_on_completion which puts it in a D state until the
user action happens.  If there is no user action happening the load average
goes up as the thread D state is taken in to account.  Also after
downloading the BIOS image the enrties go away momentarily but they are
recreated from the callback function in dell_rbu.  This causes the thread
to get recreated causing the load average to permenently stay around 1.

Fix:

The dell_rbu also creates the entry
/sys/devices/platform/dell_rbu/image_type at driver load time.  The image
type by default is mono if required the user can echo packet to image_type
to make the BIOS update mechanism using packets.  Also by echoing init in
to image_type the /sys/class/firmware/dell_rbu entries can be created.

The driver code was changed to not create /sys/class/firmware/dell_rbu
entries during load time, and also to not create the above entries from the
callback function.  The entries are only created by echoing init to
/sys/devices/platform/dell_rbu/image_type The user now needs to create the
entries to download the image monolithic or packet.  This fixes the issue
since the kernel thread only is created when ever the user is ready to
download the BIOS image; this minimizes the life span of the kernel thread
and the load average goes back to normal.

Signed off by Abhay Salunke <abhay_salunke@dell.com>

Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
2006-01-14 18:27:13 -08:00
..
acorn
acpi [PATCH] Unlinline a bunch of other functions 2006-01-14 18:27:06 -08:00
amba
atm
base [PATCH] Unlinline a bunch of other functions 2006-01-14 18:27:06 -08:00
block [PATCH] Unlinline a bunch of other functions 2006-01-14 18:27:06 -08:00
bluetooth [PATCH] Unlinline a bunch of other functions 2006-01-14 18:27:06 -08:00
cdrom
char [PATCH] powerpc: Add support for the MPC83xx watchdog 2006-01-14 18:27:07 -08:00
connector
cpufreq [PATCH] Unlinline a bunch of other functions 2006-01-14 18:27:06 -08:00
crypto
dio
eisa
fc4
firmware [PATCH] dell_rbu: fix Bug 5854 2006-01-14 18:27:13 -08:00
hwmon
i2c
ide [PATCH] Unlinline a bunch of other functions 2006-01-14 18:27:06 -08:00
ieee1394
infiniband [PATCH] Unlinline a bunch of other functions 2006-01-14 18:27:06 -08:00
input
isdn [PATCH] Unlinline a bunch of other functions 2006-01-14 18:27:06 -08:00
macintosh
mca
md [PATCH] Unlinline a bunch of other functions 2006-01-14 18:27:06 -08:00
media [PATCH] Unlinline a bunch of other functions 2006-01-14 18:27:06 -08:00
message [PATCH] Unlinline a bunch of other functions 2006-01-14 18:27:06 -08:00
mfd
misc
mmc
mtd [PATCH] Unlinline a bunch of other functions 2006-01-14 18:27:06 -08:00
net [PATCH] Unlinline a bunch of other functions 2006-01-14 18:27:06 -08:00
nubus
oprofile
parisc
parport
pci
pcmcia
pnp
rapidio
s390 [PATCH] s390: fix blk_queue_ordered call in dasd.c fixup 2006-01-14 18:27:10 -08:00
sbus
scsi [PATCH] Unlinline a bunch of other functions 2006-01-14 18:27:06 -08:00
serial [PATCH] Altix: ioc3 serial support 2006-01-14 18:25:20 -08:00
sh
sn [PATCH] Altix: ioc3 serial support 2006-01-14 18:25:20 -08:00
spi
tc
telephony
usb [PATCH] Unlinline a bunch of other functions 2006-01-14 18:27:06 -08:00
video [PATCH] Unlinline a bunch of other functions 2006-01-14 18:27:06 -08:00
w1
zorro
Kconfig
Makefile