[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>
This commit is contained in:
Jeremy Fitzhardinge
2007-05-02 19:27:12 +02:00
committed by Andi Kleen
parent 1353ebb4b4
commit a6c4e076ee
4 changed files with 18 additions and 10 deletions

View File

@@ -155,7 +155,7 @@ static void __cpuinit smp_store_cpu_info(int id)
*c = boot_cpu_data;
if (id!=0)
identify_cpu(c);
identify_secondary_cpu(c);
/*
* Mask B, Pentium, but not Pentium MMX
*/