-
- Downloads
[PATCH] i386: clean up identify_cpu
identify_cpu() is used to identify both the boot CPU and secondary CPUs, but it performs some actions which only apply to the boot CPU. Those functions are therefore really __init functions, but because they're called by identify_cpu(), they must be marked __cpuinit. This patch splits identify_cpu() into identify_boot_cpu() and identify_secondary_cpu(), and calls the appropriate init functions from each. Also, identify_boot_cpu() and all the functions it dominates are marked __init. Signed-off-by:Jeremy Fitzhardinge <jeremy@xensource.com> Signed-off-by:
Andi Kleen <ak@suse.de>
Showing
- arch/i386/kernel/cpu/common.c 14 additions, 7 deletionsarch/i386/kernel/cpu/common.c
- arch/i386/kernel/smpboot.c 1 addition, 1 deletionarch/i386/kernel/smpboot.c
- arch/i386/kernel/sysenter.c 1 addition, 1 deletionarch/i386/kernel/sysenter.c
- include/asm-i386/processor.h 2 additions, 1 deletioninclude/asm-i386/processor.h
Loading
Please register or sign in to comment