• B
    block: Move power management code into a new source file · bca6b067
    Bart Van Assche 提交于
    Move the code for runtime power management from blk-core.c into the
    new source file blk-pm.c. Move the corresponding declarations from
    <linux/blkdev.h> into <linux/blk-pm.h>. For CONFIG_PM=n, leave out
    the declarations of the functions that are not used in that mode.
    This patch not only reduces the number of #ifdefs in the block layer
    core code but also reduces the size of header file <linux/blkdev.h>
    and hence should help to reduce the build time of the Linux kernel
    if CONFIG_PM is not defined.
    Signed-off-by: NBart Van Assche <bvanassche@acm.org>
    Reviewed-by: NMing Lei <ming.lei@redhat.com>
    Reviewed-by: NChristoph Hellwig <hch@lst.de>
    Cc: Jianchao Wang <jianchao.w.wang@oracle.com>
    Cc: Hannes Reinecke <hare@suse.com>
    Cc: Johannes Thumshirn <jthumshirn@suse.de>
    Cc: Alan Stern <stern@rowland.harvard.edu>
    Signed-off-by: NJens Axboe <axboe@kernel.dk>
    bca6b067
Kconfig 6.7 KB