]> 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)
commit71174fc336c72dbde79db2b0f3fd90f16fcb86cd
tree18fd65bcac736087793329fda9211cfa3fd78501
parent93cd6296a65d40627f43a82ce552a28081e3bd77
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 046a1c47c4 ("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