]> git.baikalelectronics.ru Git - kernel.git/commit
block: delete __cpuinit usage from all block files
authorPaul Gortmaker <paul.gortmaker@windriver.com>
Wed, 19 Jun 2013 19:26:23 +0000 (15:26 -0400)
committerPaul Gortmaker <paul.gortmaker@windriver.com>
Sun, 14 Jul 2013 23:36:59 +0000 (19:36 -0400)
commit5f98ee9a53a093b7b96b59350de239b7df23f45f
tree18fd65bcac736087793329fda9211cfa3fd78501
parentc1cab2ed869c348d1ed9dc340b1f4bc105c59160
block: delete __cpuinit usage from all block files

The __cpuinit type of throwaway sections might have made sense
some time ago when RAM was more constrained, but now the savings
do not offset the cost and complications.  For example, the fix in
commit 97cf57b5e9 ("x86: Fix bit corruption at CPU resume time")
is a good example of the nasty type of bugs that can be created
with improper use of the various __init prefixes.

After a discussion on LKML[1] it was decided that cpuinit should go
the way of devinit and be phased out.  Once all the users are gone,
we can then finally remove the macros themselves from linux/init.h.

This removes all the drivers/block uses of the __cpuinit macros
from all C files.

[1] https://lkml.org/lkml/2013/5/20/589

Cc: Jens Axboe <axboe@kernel.dk>
Signed-off-by: Paul Gortmaker <paul.gortmaker@windriver.com>
block/blk-iopoll.c
block/blk-softirq.c