Mike Travis
e057d7aea9
cpumask: add sysfs displays for configured and disabled cpu maps
...
Impact: add new sysfs files.
Add sysfs files "kernel_max" and "offline" to display the max CPU index
allowed (NR_CPUS-1), and the map of cpus that are offline.
Cpus can be offlined via HOTPLUG, disabled by the BIOS ACPI tables, or
if they exceed the number of cpus allowed by the NR_CPUS config option,
or the "maxcpus=NUM" kernel start parameter.
The "possible_cpus=NUM" parameter can also extend the number of possible
cpus allowed, in which case the cpus not present at startup will be
in the offline state. (These cpus can be HOTPLUGGED ON after system
startup [pending a follow-on patch to provide the capability via the
/sys/devices/sys/cpu/cpuN/online mechanism to bring them online.])
By design, the "offlined cpus > possible cpus" display will always
use the following formats:
* all possible cpus online: "x$" or "x-y$"
* some possible cpus offline: ".*,x$" or ".*,x-y$"
where:
x == number of possible cpus (nr_cpu_ids); and
y == number of cpus >= NR_CPUS or maxcpus (if y > x).
One use of this feature is for distros to select (or configure) the
appropriate kernel to install for the resident system.
Notes:
* cpus offlined <= possible cpus will be printed for all architectures.
* cpus offlined > possible cpus will only be printed for arches that
set 'total_cpus' [X86 only in this patch].
Based on tip/cpus4096 + .../rusty/linux-2.6-for-ingo.git/master +
x86-only-patches sent 12/15.
Signed-off-by: Mike Travis <travis@sgi.com>
Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
2008-12-19 17:47:04 +10:30
..
accessibility
acpi
Revert "ACPI: battery: Convert discharge energy rate to current properly"
2008-12-05 13:30:03 -08:00
amba
ata
ata: Fix experimental tags
2008-12-09 00:44:29 -05:00
atm
ATM: horizon, fix hrz_probe fail path
2008-11-29 20:42:28 -08:00
auxdisplay
base
cpumask: add sysfs displays for configured and disabled cpu maps
2008-12-19 17:47:04 +10:30
block
pktcdvd: remove broken dev_t export of class devices
2008-12-10 10:03:32 -08:00
bluetooth
bpa10x: free sk_buff with kfree_skb
2008-10-31 00:40:19 -07:00
cdrom
char
Fix incorrect use of loose in tty/serial drivers
2008-12-05 13:40:52 -08:00
clocksource
cpumask: convert struct clock_event_device to cpumask pointers.
2008-12-13 21:20:26 +10:30
connector
cpufreq
cpuidle
regression: disable timer peek-ahead for 2.6.28
2008-11-09 16:28:42 -08:00
crypto
fix talitos
2008-11-30 10:03:36 -08:00
dca
[4/4] dca: fixup initialization dependency
2008-11-10 15:01:03 -08:00
dio
dma
dmaengine: struct device - replace bus_id with dev_name(), dev_set_name()
2008-11-11 13:12:33 -07:00
edac
i82875p_edac: fix module remove
2008-12-01 19:55:25 -08:00
eisa
firewire
firewire: fw-ohci: fix IOMMU resource exhaustion
2008-12-10 12:45:34 +01:00
firmware
trivial: dmi_scan typo
2008-11-07 08:25:43 -08:00
gpio
gpiolib: extend gpio label column width in debugfs file
2008-11-19 18:49:57 -08:00
gpu
drm/i915: Disable the GM965 MSI errata workaround.
2008-12-09 15:37:24 +10:00
hid
HID: Apple ALU wireless keyboards are bluetooth devices
2008-11-28 15:09:26 +01:00
hwmon
hwmon: applesmc: make applesmc load automatically on startup
2008-12-01 19:55:24 -08:00
i2c
i2c-parport: Fix misplaced parport_release call
2008-11-28 15:24:39 +01:00
ide
[IA64] Clear up section mismatch for ioc4_ide_attach_one.
2008-12-09 10:08:48 -08:00
idle
ieee1394
ieee1394: node manager causes up to ~3.25s delay in freezing tasks
2008-12-09 19:34:33 +01:00
infiniband
Merge branches 'ehca' and 'mlx4' into for-linus
2008-12-01 10:11:50 -08:00
input
Merge branch 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/dtor/input
2008-11-30 11:05:21 -08:00
isdn
hysdn: fix writing outside the field on 64 bits
2008-12-03 21:01:28 -08:00
leds
remove unused #include <version.h>'s
2008-11-01 09:50:12 -07:00
lguest
macintosh
rackmeter section fixes
2008-11-30 10:03:37 -08:00
mca
md
block: fix setting of max_segment_size and seg_boundary mask
2008-12-03 12:55:55 +01:00
media
em28xx: remove backward compat macro added on a previous fix
2008-12-01 18:04:14 -02:00
memstick
message
drivers/message/i2o/iop.c: cleanup kerneldoc
2008-12-05 13:40:52 -08:00
mfd
mfd: Correct WM8350 I2C return code usage
2008-11-16 19:58:47 +01:00
misc
[IA64] Fix GRU compile error w/o CONFIG_HUGETLB_PAGE
2008-12-09 10:06:43 -08:00
mmc
mmc: struct device - replace bus_id with dev_name(), dev_set_name()
2008-11-08 21:37:46 +01:00
mtd
Merge git://git.infradead.org/mtd-2.6
2008-12-09 08:28:36 -08:00
net
zd1211rw: use unaligned safe memcmp() in-place of compare_ether_addr()
2008-12-05 09:18:35 -05:00
nubus
of
OF-device: Don't overwrite numa_node in device registration
2008-10-31 16:12:01 +11:00
oprofile
parisc
cpumask: make irq_set_affinity() take a const struct cpumask
2008-12-13 21:20:26 +10:30
parport
parport_serial: fix array overflow
2008-12-01 19:55:24 -08:00
pci
cpumask: change cpumask_scnprintf, cpumask_parse_user, cpulist_parse, and cpulist_scnprintf to take pointers.
2008-12-13 21:20:25 +10:30
pcmcia
pcmcia: ensure correct logging in do_io_probe
2008-11-09 21:47:47 +01:00
pnp
drivers: remove duplicated #include
2008-11-04 08:18:19 -08:00
power
ps3
powerpc/ps3: Fix compile error in ps3-lpm.c
2008-11-05 19:59:08 +11:00
rapidio
rapidio section noise
2008-11-30 10:03:37 -08:00
regulator
regulator: Use menuconfig in Kconfig
2008-11-09 14:49:23 +00:00
rtc
rtc twl4030: rename ioctl function when RTC_INTF_DEV=n
2008-12-10 08:01:53 -08:00
s390
[SCSI] zfcp: prevent double decrement on host_busy while being busy
2008-12-01 10:18:20 -06:00
sbus
Revert "of_platform_driver noise on sparce"
2008-12-01 07:55:14 -08:00
scsi
[PATCH 1/2] kill FMODE_NDELAY_NOW
2008-12-04 04:22:57 -05:00
serial
Merge branch 'release' of git://git.kernel.org/pub/scm/linux/kernel/git/aegl/linux-2.6
2008-12-10 10:04:25 -08:00
sh
sn
spi
spi: fix spi_s3c24xx_gpio num_chipselect
2008-12-01 19:55:24 -08:00
ssb
SSB: hide empty sub menu
2008-11-10 13:50:17 -08:00
staging
Don't ask twice about not including staging drivers
2008-11-09 12:47:04 -08:00
tc
telephony
telephony: trivial: fix up email address
2008-11-11 09:30:23 -08:00
thermal
uio
saner FASYNC handling on file close
2008-11-01 09:49:46 -07:00
usb
Fix incorrect use of loose in tty/serial drivers
2008-12-05 13:40:52 -08:00
uwb
video
Revert "radeonfb: accelerate imageblit and other improvements"
2008-12-10 16:53:32 -08:00
virtio
w1
W1_MASTER_DS1WM should depend on HAVE_CLK
2008-11-30 10:03:36 -08:00
watchdog
iTCO_wdt: fix typo when setting TCO_EN bit
2008-12-03 16:20:19 -08:00
xen
cpumask: make irq_set_affinity() take a const struct cpumask
2008-12-13 21:20:26 +10:30
zorro
Kconfig
Makefile