diff options
author | Satyam Sharma <satyam@infradead.org> | 2007-10-18 06:06:38 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@woody.linux-foundation.org> | 2007-10-18 17:37:28 -0400 |
commit | 38048983e14c0fb6324175fbaf2be1baa842f5ee (patch) | |
tree | c79ceffa9ea209bc9bbd91ba037bd177d372fc0d /arch/x86/kernel/msr.c | |
parent | 761bb431908e84d1793c5eb6c2ae2cc4926bed3e (diff) |
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 <satyam@infradead.org>
Cc: Andi Kleen <ak@suse.de>
Acked-by: H. Peter Anvin <hpa@zytor.com>
Cc: Thomas Gleixner <tglx@linutronix.de>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'arch/x86/kernel/msr.c')
-rw-r--r-- | arch/x86/kernel/msr.c | 2 |
1 files changed, 1 insertions, 1 deletions
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 = { | |||
133 | .open = msr_open, | 133 | .open = msr_open, |
134 | }; | 134 | }; |
135 | 135 | ||
136 | static int msr_device_create(int cpu) | 136 | static int __cpuinit msr_device_create(int cpu) |
137 | { | 137 | { |
138 | struct device *dev; | 138 | struct device *dev; |
139 | 139 | ||