]> err.no Git - linux-2.6/commit
[PATCH] create and destroy cache sysfs entries based on cpu notifiers
authorAshok Raj <ashok.raj@intel.com>
Sun, 30 Oct 2005 22:59:50 +0000 (14:59 -0800)
committerLinus Torvalds <torvalds@g5.osdl.org>
Mon, 31 Oct 2005 01:37:14 +0000 (17:37 -0800)
commit1aa1a9f98ffd06e288be4d85ed814c6cdbccce82
tree3b387855f4e8415cfd83bf54a2900f2a43127b73
parentad74557a49d1dea428fb0ad60e75a5aa37610e1d
[PATCH] create and destroy cache sysfs entries based on cpu notifiers

cpu cache entries should be populated only when cpu is online and removed
when they are logically offlined.

Without which entries are not removed when cpu is offlined, or dont appear
when we boot with maxcpus=1 and then kick the rest of the cpus via echo 1
to the sysfs online file.

- Changed __devinit to __cpuinit for consistency.
- Changed sysfs_driver_register to register_cpu_notifier.

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>
arch/i386/kernel/cpu/intel_cacheinfo.c