H. Peter Anvin 1cff92d8fd x86, xsave: Make xstate_enable_boot_cpu() __init, protect on CPU 0
xstate_enable_boot_cpu() is, as the name implies, only used on the
boot CPU; furthermore, it invokes alloc_bootmem(), which is __init;
hence it needs to be tagged __init rather than __cpuinit.

Furthermore, it is *not* safe in the long run to rely on CPU 0 only
coming online during the early boot -- at some point we're going to
support offlining (and re-onlining) the boot CPU, and at that point we
must not call xstate_enable_boot_cpu() again.

The code is a fair bit more obscure than one would like, because the
__ref overrides aren't quite powerful enough.

Signed-off-by: H. Peter Anvin <hpa@linux.intel.com>
Acked-by: Suresh Siddha <suresh.b.siddha@intel.com>
Cc: Robert Richter <robert.richter@amd.com>
LKML-Reference: <4C476236.1020302@zytor.com>
2010-07-21 15:33:54 -07:00
..
2009-07-19 18:27:51 +02:00
2010-02-07 17:47:51 +01:00
2010-01-05 09:17:33 +09:00
2010-02-09 11:13:56 +01:00
2009-12-09 16:28:59 -08:00
2010-03-26 11:33:57 +01:00
2010-03-12 15:52:32 -08:00
2010-03-12 15:52:32 -08:00
2010-02-16 18:21:32 +01:00
2010-03-08 16:55:37 +01:00