提交 db47d475 编写于 作者: S Satyam Sharma 提交者: Jens Axboe

ll_rw_blk: blk_cpu_notifier should be __cpuinitdata

blk_cpu_notifier is marked as __devinitdata, but __devinitdata need not
be __init even if HOTPLUG_CPU=n, which wastes space. It should be marked
__cpuinitdata, and the callback itself as __cpuinit.
Signed-off-by: NSatyam Sharma <satyam@infradead.org>
Signed-off-by: NAndrew Morton <akpm@linux-foundation.org>
Signed-off-by: NJens Axboe <jens.axboe@oracle.com>
上级 6c92e699
...@@ -3555,7 +3555,7 @@ static void blk_done_softirq(struct softirq_action *h) ...@@ -3555,7 +3555,7 @@ static void blk_done_softirq(struct softirq_action *h)
} }
} }
static int blk_cpu_notify(struct notifier_block *self, unsigned long action, static int __cpuinit blk_cpu_notify(struct notifier_block *self, unsigned long action,
void *hcpu) void *hcpu)
{ {
/* /*
...@@ -3576,7 +3576,7 @@ static int blk_cpu_notify(struct notifier_block *self, unsigned long action, ...@@ -3576,7 +3576,7 @@ static int blk_cpu_notify(struct notifier_block *self, unsigned long action,
} }
static struct notifier_block __devinitdata blk_cpu_notifier = { static struct notifier_block blk_cpu_notifier __cpuinitdata = {
.notifier_call = blk_cpu_notify, .notifier_call = blk_cpu_notify,
}; };
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册