original_kernel/drivers
Ashok Raj a9d9baa1e8 [PATCH] clean up lock_cpu_hotplug() in cpufreq
There are some callers in cpufreq hotplug notify path that the lowest
function calls lock_cpu_hotplug().  The lock is already held during
cpu_up() and cpu_down() calls when the notify calls are broadcast to
registered clients.

Ideally if possible, we could disable_preempt() at the highest caller and
make sure we dont sleep in the path down in cpufreq->driver_target() calls
but the calls are so intertwined and cumbersome to cleanup.

Hence we consistently use lock_cpu_hotplug() and unlock_cpu_hotplug() in
all places.

 - Removed export of cpucontrol semaphore and made it static.
 - removed explicit uses of up/down with lock_cpu_hotplug()
   so we can keep track of the the callers in same thread context and
   just keep refcounts without calling a down() that causes a deadlock.
 - Removed current_in_hotplug() uses
 - Removed PF_HOTPLUG_CPU in sched.h introduced for the current_in_hotplug()
   temporary workaround.

Tested with insmod of cpufreq_stat.ko, and logical online/offline
to make sure we dont have any hang situations.

Signed-off-by: Ashok Raj <ashok.raj@intel.com>
Cc: Zwane Mwaikambo <zwane@linuxpower.ca>
Cc: Shaohua Li <shaohua.li@intel.com>
Cc: "Siddha, Suresh B" <suresh.b.siddha@intel.com>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
2005-11-28 14:42:23 -08:00
..
acorn
acpi
atm
base [PATCH] Small fixes to driver core 2005-11-23 23:03:06 -08:00
block [PATCH] revert floppy-fix-read-only-handling 2005-11-23 16:08:38 -08:00
bluetooth
cdrom
char mm: re-architect the VM_UNPAGED logic 2005-11-28 14:34:23 -08:00
connector
cpufreq [PATCH] clean up lock_cpu_hotplug() in cpufreq 2005-11-28 14:42:23 -08:00
crypto
dio
eisa
fc4
firmware [PATCH] dell_rbu driver depends on x86[64] 2005-11-22 09:13:44 -08:00
hwmon [PATCH] hwmon: hdaps missing an axis 2005-11-23 23:04:27 -08:00
i2c
ide
ieee1394
infiniband [PATCH] drivers/infiniband/core/mad.c: fix use-after-release case 2005-11-27 20:23:13 -08:00
input Input: make serio and gameport more swsusp friendly 2005-11-20 00:56:43 -05:00
isdn
macintosh
mca
md [PATCH] device-mapper raid1: drop mark_region spinlock fix 2005-11-22 09:14:31 -08:00
media [PATCH] Fix an OOPS is CinergyT2 2005-11-20 14:06:28 -08:00
message [PATCH] drivers/message/i2o/pci.c: fix a NULL pointer dereference 2005-11-27 20:22:32 -08:00
mfd
misc
mmc
mtd
net [PATCH] net: Fix compiler-error on dgrs.c when !CONFIG_PCI 2005-11-22 09:13:41 -08:00
nubus
oprofile
parisc
parport
pci [PATCH] PCI: kernel-doc fix for pci-acpi.c 2005-11-23 23:04:27 -08:00
pcmcia
pnp
rapidio
s390
sbus [SPARC]: drivers/sbus/char/aurora.c: "extern inline" -> "static inline" 2005-11-22 15:30:29 -08:00
scsi [PATCH] drivers/scsi/dpt_i2o.c: fix a NULL pointer dereference 2005-11-27 20:23:46 -08:00
serial [SERIAL] imx: Fix missed platform_driver_unregister 2005-11-21 17:05:21 +00:00
sh
sn
tc
telephony
usb [PATCH] usb serial: remove redundant include 2005-11-23 23:04:28 -08:00
video [PATCH] fbcon: fix obvious bug in fbcon logo rotation code 2005-11-24 18:40:34 -08:00
w1
zorro
Kconfig
Makefile