aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/block/Kconfig
diff options
context:
space:
mode:
authorBart Van Assche <bvanassche@acm.org>2018-09-26 14:01:03 -0700
committerJens Axboe <axboe@kernel.dk>2018-09-26 15:11:28 -0600
commitbca6b067b0b269a7b8ba129e2a918309ca8b4a55 (patch)
tree8c41db994ddaf2023d881189cd947fce24f3b7d3 /block/Kconfig
parentxen: don't include <xen/xen.h> from <asm/io.h> and <asm/dma-mapping.h> (diff)
downloadwireguard-linux-bca6b067b0b269a7b8ba129e2a918309ca8b4a55.tar.xz
wireguard-linux-bca6b067b0b269a7b8ba129e2a918309ca8b4a55.zip
block: Move power management code into a new source file
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: Bart Van Assche <bvanassche@acm.org> Reviewed-by: Ming Lei <ming.lei@redhat.com> Reviewed-by: Christoph 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: Jens Axboe <axboe@kernel.dk>
Diffstat (limited to 'block/Kconfig')
-rw-r--r--block/Kconfig3
1 files changed, 3 insertions, 0 deletions
diff --git a/block/Kconfig b/block/Kconfig
index 1f2469a0123c..85263e7bded6 100644
--- a/block/Kconfig
+++ b/block/Kconfig
@@ -228,4 +228,7 @@ config BLK_MQ_RDMA
depends on BLOCK && INFINIBAND
default y
+config BLK_PM
+ def_bool BLOCK && PM
+
source block/Kconfig.iosched