aboutsummaryrefslogtreecommitdiffstats
path: root/xen/arch/x86/x86_64/traps.c
diff options
context:
space:
mode:
authorkfraser@localhost.localdomain <kfraser@localhost.localdomain>2007-07-11 17:57:47 +0100
committerkfraser@localhost.localdomain <kfraser@localhost.localdomain>2007-07-11 17:57:47 +0100
commitff3e88f816e3e4d35cb0483b786f8e209dbf7ff7 (patch)
treeec114bbc6d2f3f8dc9fc39a19ae5e2afdb2d6417 /xen/arch/x86/x86_64/traps.c
parentd53485d69b6d328366038cfad8e9e90f66bdb317 (diff)
downloadxen-ff3e88f816e3e4d35cb0483b786f8e209dbf7ff7.tar.gz
xen-ff3e88f816e3e4d35cb0483b786f8e209dbf7ff7.tar.bz2
xen-ff3e88f816e3e4d35cb0483b786f8e209dbf7ff7.zip
Convert __init into __devinit in wakeup path.
Need to ensure all the code slice in the wakeup path still existing. For this purpose, we have to use __devinit instead of __init, since the former is null for CONFIG_HOTPLUG while the latter always causes related code to be free-ed after first boot. Later when adding __init to some function, be sure to consider wakeup case and cpu hotplug! Signed-off-by <Kevin.Tian@intel.com>
Diffstat (limited to 'xen/arch/x86/x86_64/traps.c')
-rw-r--r--xen/arch/x86/x86_64/traps.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/xen/arch/x86/x86_64/traps.c b/xen/arch/x86/x86_64/traps.c
index 7a9c2c11bf..ad4577ad55 100644
--- a/xen/arch/x86/x86_64/traps.c
+++ b/xen/arch/x86/x86_64/traps.c
@@ -285,7 +285,7 @@ static int write_stack_trampoline(
return 34;
}
-void __init percpu_traps_init(void)
+void __devinit percpu_traps_init(void)
{
char *stack_bottom, *stack;
int cpu = smp_processor_id();