Commit 761c4bf8 authored by Satyam Sharma's avatar Satyam Sharma Committed by Thomas Gleixner

i386: 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().

[ tglx: arch/x86 adaptation ]
Signed-off-by: default avatarSatyam Sharma <satyam@infradead.org>
Signed-off-by: default avatarAndi Kleen <ak@suse.de>
Signed-off-by: default avatarIngo Molnar <mingo@elte.hu>
Signed-off-by: default avatarThomas Gleixner <tglx@linutronix.de>
parent 75e3808b
...@@ -133,7 +133,7 @@ static const struct file_operations msr_fops = { ...@@ -133,7 +133,7 @@ static const struct file_operations msr_fops = {
.open = msr_open, .open = msr_open,
}; };
static int msr_device_create(int i) static int __cpuinit msr_device_create(int i)
{ {
int err = 0; int err = 0;
struct device *dev; struct device *dev;
...@@ -144,7 +144,7 @@ static int msr_device_create(int i) ...@@ -144,7 +144,7 @@ static int msr_device_create(int i)
return err; return err;
} }
static int msr_class_cpu_callback(struct notifier_block *nfb, static int __cpuinit msr_class_cpu_callback(struct notifier_block *nfb,
unsigned long action, void *hcpu) unsigned long action, void *hcpu)
{ {
unsigned int cpu = (unsigned long)hcpu; unsigned int cpu = (unsigned long)hcpu;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment