kernel-ark/include
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
..
acpi
asm-alpha [PATCH] mm: fill arch atomic64 gaps 2005-11-23 16:08:39 -08:00
asm-arm [ARM] 3173/1: Fix to allow 2.6.15-rc2 to compile for IOP3xx boards 2005-11-23 22:45:27 +00:00
asm-arm26 [PATCH] atomic: inc_not_zero 2005-11-13 18:14:16 -08:00
asm-cris [PATCH] atomic: inc_not_zero 2005-11-13 18:14:16 -08:00
asm-frv [PATCH] atomic: inc_not_zero 2005-11-13 18:14:16 -08:00
asm-generic Merge x86-64 update from Andi 2005-11-14 19:56:02 -08:00
asm-h8300 [PATCH] atomic: inc_not_zero 2005-11-13 18:14:16 -08:00
asm-i386 x86: Fix silly typo in recent <asm/signal.h> fixes 2005-11-17 10:04:31 -08:00
asm-ia64 [IA64-SGI] support for older versions of PROM 2005-11-21 14:17:28 -08:00
asm-m32r [PATCH] consolidate sys_ptrace() 2005-11-07 07:53:42 -08:00
asm-m68k [PATCH] atomic: inc_not_zero 2005-11-13 18:14:16 -08:00
asm-m68knommu [PATCH] atomic: inc_not_zero 2005-11-13 18:14:16 -08:00
asm-mips [MIPS] SEAD: More build fixes. 2005-11-17 16:23:57 +00:00
asm-parisc [PARISC] Always spinlock tlb flush operations to ensure preempt safety 2005-11-17 16:44:14 -05:00
asm-powerpc [PATCH] powerpc: More hugepage boundary case fixes 2005-11-25 22:12:45 +11:00
asm-ppc Merge branch 'mymerge' of ssh://ozlabs.org/home/sfr/kernel-sfr 2005-11-19 14:25:23 +11:00
asm-s390 [PATCH] atomic: inc_not_zero 2005-11-13 18:14:16 -08:00
asm-sh [PATCH] atomic: inc_not_zero 2005-11-13 18:14:16 -08:00
asm-sh64 [PATCH] atomic: inc_not_zero 2005-11-13 18:14:16 -08:00
asm-sparc [PATCH] atomic: inc_not_zero 2005-11-13 18:14:16 -08:00
asm-sparc64 [PATCH] sparc: convert IO remapping to VM_PFNMAP 2005-11-28 14:35:36 -08:00
asm-um [PATCH] uml: eliminate anonymous union and clean up symlink lossage 2005-11-22 09:13:41 -08:00
asm-v850 [PATCH] v850: use generic hardirq code 2005-11-15 08:59:20 -08:00
asm-x86_64 [PATCH] mm: fill arch atomic64 gaps 2005-11-23 16:08:39 -08:00
asm-xtensa [PATCH] atomic: inc_not_zero 2005-11-13 18:14:16 -08:00
keys
linux [PATCH] clean up lock_cpu_hotplug() in cpufreq 2005-11-28 14:42:23 -08:00
math-emu
media [PATCH] v4l: (945) adds a new include for internal v4l2 ioctls and api 2005-11-13 18:14:19 -08:00
mtd [MTD] user-abi: Clean up trailing white spaces 2005-11-07 14:43:11 +01:00
net [IPV4]: Fix secondary IP addresses after promotion 2005-11-22 14:47:37 -08:00
pcmcia
rdma [IB] uverbs: have kernel return QP capabilities 2005-11-10 10:22:50 -08:00
rxrpc
scsi [SCSI] use a completion in scsi_send_eh_cmnd 2005-11-06 12:49:36 -06:00
sound [ALSA] version 1.0.10rc3 2005-11-07 14:35:14 +01:00
video