]> git.neil.brown.name Git - history.git/commit
[PATCH] minor cleanups for hotplug CPUs
authorRusty Russell <rusty@rustcorp.com.au>
Mon, 8 Mar 2004 14:06:03 +0000 (06:06 -0800)
committerLinus Torvalds <torvalds@ppc970.osdl.org>
Mon, 8 Mar 2004 14:06:03 +0000 (06:06 -0800)
commita59d2e4e6977e7b94e003c96a41f07e96cddc340
treeb550b7b27639edb04cd7548b58f86fa9905dce90
parent33a7ddaa6883444f328f1aac78b3612c7c9cfe0b
[PATCH] minor cleanups for hotplug CPUs

Note that without CONFIG_HOTPLUG_CPU, online cpus == possible cpus, so
substitutions are a noop.

- Changes show_stat to print out stats for every possible cpu, not
  just online CPUs.

- Allocate mem in stat_open on possible, not online_cpus.

- Add conventient macros to cpu.h: especially cpu_is_offline() for
  testing if a cpu is still online.

- Add a num_possible_cpus() similar to num_online_cpus(), and define
  cpu_possible_mask for UP.

- Allow printk on down cpus once system is running.

- Mask cpumask with possible, not online cpus, for sys_getaffinity().
fs/proc/proc_misc.c
include/linux/cpu.h
include/linux/cpumask.h
kernel/printk.c
kernel/sched.c