Skip to content

Commit

Permalink
x86 msr driver: Misc cpuinit annotations
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Satyam Sharma authored and Linus Torvalds committed Oct 18, 2007
1 parent 761bb43 commit 3804898
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion arch/x86/kernel/msr.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down

0 comments on commit 3804898

Please sign in to comment.