kernel-fxtec-pro1x/drivers
Ashok Raj c32b6b8e52 [PATCH] create and destroy cpufreq sysfs entries based on cpu notifiers
cpufreq entries in sysfs should only be populated when CPU is online state.
 When we either boot with maxcpus=x and then boot the other cpus by echoing
to sysfs online file, these entries should be created and destroyed when
CPU_DEAD is notified.  Same treatement as cache entries under sysfs.

We place the processor in the lowest frequency, so hw managed P-State
transitions can still work on the other threads to save power.

Primary goal was to just make these directories appear/disapper dynamically.

There is one in this patch i had to do, which i really dont like myself but
probably best if someone handling the cpufreq infrastructure could give
this code right treatment if this is not acceptable.  I guess its probably
good for the first cut.

- Converting lock_cpu_hotplug()/unlock_cpu_hotplug() to disable/enable preempt.
  The locking was smack in the middle of the notification path, when the
  hotplug is already holding the lock. I tried another solution to avoid this
  so avoid taking locks if we know we are from notification path. The solution
  was getting very ugly and i decided this was probably good for this iteration
  until someone who understands cpufreq could do a better job than me.

(akpm: export cpucontrol to GPL modules: drivers/cpufreq/cpufreq_stats.c now
does lock_cpu_hotplug())

Signed-off-by: Ashok Raj <ashok.raj@intel.com>
Signed-off-by: Venkatesh Pallipadi <venkatesh.pallipadi@intel.com>
Cc: Dave Jones <davej@codemonkey.org.uk>
Cc: Zwane Mwaikambo <zwane@holomorphy.com>
Cc: Greg KH <greg@kroah.com>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
2005-10-30 17:37:14 -08:00
..
acorn
acpi [PATCH] memory hotplug: move section_mem_map alloc to sparse.c 2005-10-29 21:40:44 -07:00
atm
base [PATCH] introduce get_cpu_sysdev() to retrieve a sysfs entry for a cpu. 2005-10-30 17:37:14 -08:00
block
bluetooth
cdrom
char [PATCH] CONFIG_IA32 2005-10-30 17:37:10 -08:00
connector
cpufreq [PATCH] create and destroy cpufreq sysfs entries based on cpu notifiers 2005-10-30 17:37:14 -08:00
crypto [PATCH] CONFIG_IA32 2005-10-30 17:37:10 -08:00
dio
eisa
fc4
firmware [PATCH] CONFIG_IA32 2005-10-30 17:37:10 -08:00
hwmon
i2c
ide Cleaned up AMD Au1200 IDE driver: 2005-10-29 19:32:20 +01:00
ieee1394
infiniband
input [PATCH] CONFIG_IA32 2005-10-30 17:37:10 -08:00
isdn
macintosh
mca
md [PATCH] Use sg_set_buf/sg_init_one where applicable 2005-10-30 11:19:43 +11:00
media Let it compile again after i2c algo id removal. Sort headers. 2005-10-29 19:32:27 +01:00
message
mfd
misc
mmc Au1[12]00 mmc driver. Only tested on the Au1200 at this point though 2005-10-29 19:32:26 +01:00
mtd
net [CRYPTO] Simplify one-member scatterlist expressions 2005-10-30 11:19:43 +11:00
nubus
oprofile
parisc
parport
pci [PATCH] CONFIG_IA32 2005-10-30 17:37:10 -08:00
pcmcia [PATCH] CONFIG_IA32 2005-10-30 17:37:10 -08:00
pnp
s390
sbus
scsi [libata] use dev_printk() throughout drivers 2005-10-30 14:39:11 -05:00
serial
sh
sn
tc Use physical addresses at the interface level, letting drivers remap 2005-10-29 19:31:35 +01:00
telephony
usb [PATCH] Use sg_set_buf/sg_init_one where applicable 2005-10-30 11:19:43 +11:00
video [PATCH] CONFIG_IA32 2005-10-30 17:37:10 -08:00
w1
zorro
Kconfig
Makefile