summaryrefslogtreecommitdiff
path: root/scripts/patch-kernel
diff options
context:
space:
mode:
authorRobert Love <rml@tech9.net>2002-06-19 23:07:45 -0700
committerLinus Torvalds <torvalds@home.transmeta.com>2002-06-19 23:07:45 -0700
commit602c7aa861b0b1cfadcf4b78f2ec424ffa913bc0 (patch)
tree570a851fff9b9d52bf9498b174632365d5f4a493 /scripts/patch-kernel
parent33bb8238a84c107116b35522c970a9637c7f486c (diff)
[PATCH] mark 3 variables as __initdata
The attached patch marks the following variables with __initdata: arch/i386/kernel/mpparse.c :: static unsigned int num_processors arch/i386/kernel/smpboot.c :: static int smp_b_stepping arch/i386/kernel/smpboot.c :: static int max_cpus The data is static and only used by __init functions so can successfully be jettisoned after boot. Compiled and booted successfully on an SMP machine. I also set max_cpus to NR_CPUS instead of -1. Besides being the logically correct value and simplifying a loop elsewhere, this change allows NR_CPUS to be set to various values other than the normal 32 which is growing in utility with the hotplug CPU changes now in mainline.
Diffstat (limited to 'scripts/patch-kernel')
0 files changed, 0 insertions, 0 deletions