Commit 38048983 authored by Satyam Sharma's avatar Satyam Sharma Committed by Linus Torvalds
Browse files

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: default avatarSatyam Sharma <>
Cc: Andi Kleen <>
Acked-by: default avatarH. Peter Anvin <>
Cc: Thomas Gleixner <>
Signed-off-by: default avatarAndrew Morton <>
Signed-off-by: default avatarLinus Torvalds <>
parent 761bb431
......@@ -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;
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