Skip to content

Commit

Permalink
ll_rw_blk: blk_cpu_notifier should be __cpuinitdata
Browse files Browse the repository at this point in the history
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: Satyam Sharma <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Jens Axboe <[email protected]>
  • Loading branch information
Satyam Sharma authored and Jens Axboe committed Oct 10, 2007
1 parent 6c92e69 commit db47d47
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions block/ll_rw_blk.c
Original file line number Diff line number Diff line change
Expand Up @@ -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)
{
/*
Expand All @@ -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,
};

Expand Down

0 comments on commit db47d47

Please sign in to comment.