summaryrefslogtreecommitdiff
path: root/arch/m68k/atari/stdma.c
diff options
context:
space:
mode:
authorH. Peter Anvin <hpa@linux.intel.com>2010-07-21 21:23:10 (GMT)
committerH. Peter Anvin <hpa@linux.intel.com>2010-07-21 22:33:54 (GMT)
commit1cff92d8fdb27684308864d9cdb324bee43b40ab (patch)
tree65a6060dab843f5f2e32a8e0fce0200eeb9d44ef /arch/m68k/atari/stdma.c
parent4995b9dba908436c1611454f9bd2cb3ddf6babee (diff)
downloadlinux-fsl-qoriq-1cff92d8fdb27684308864d9cdb324bee43b40ab.tar.xz
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>
Diffstat (limited to 'arch/m68k/atari/stdma.c')
0 files changed, 0 insertions, 0 deletions