From: Satyam Sharma Date: Thu, 18 Oct 2007 10:06:38 +0000 (-0700) Subject: x86 msr driver: Misc cpuinit annotations X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=38048983e14c0fb6324175fbaf2be1baa842f5ee;p=GitHub%2Fmt8127%2Fandroid_kernel_alcatel_ttab.git x86 msr driver: Misc cpuinit annotations msr_class_cpu_callback() can be marked __cpuinit, being the notifier callback for a __cpuinitdata notifier_block. So can be marked msr_device_create() too, called only from the newly-__cpuinit msr_class_cpu_callback() or from __init-marked msr_init(). Signed-off-by: Satyam Sharma Cc: Andi Kleen Acked-by: H. Peter Anvin Cc: Thomas Gleixner Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- diff --git a/arch/x86/kernel/msr.c b/arch/x86/kernel/msr.c index e0d5e82e64b3..e18e516cf549 100644 --- a/arch/x86/kernel/msr.c +++ b/arch/x86/kernel/msr.c @@ -133,7 +133,7 @@ static const struct file_operations msr_fops = { .open = msr_open, }; -static int msr_device_create(int cpu) +static int __cpuinit msr_device_create(int cpu) { struct device *dev;