Re: [PATCH v4 04/10] block: Move power management code into a new source file
From: Christoph Hellwig <hch@lst.de>
Date: 2018-09-14 13:01:00
From: Christoph Hellwig <hch@lst.de>
Date: 2018-09-14 13:01:00
11 files changed, 266 insertions(+), 239 deletions(-) create mode 100644 block/blk-pm.c create mode 100644 block/blk-pm.h create mode 100644 include/linux/blk-pm.hdiff --git a/block/Kconfig b/block/Kconfig index 1f2469a0123c..e213d90a5e64 100644 --- a/block/Kconfig +++ b/block/Kconfig@@ -228,4 +228,9 @@ config BLK_MQ_RDMA depends on BLOCK && INFINIBAND default y +config BLK_PM + bool + depends on BLOCK && PM + default y
This could be shortened to config BLK_PM def_bool BLOCK && PM Also a lot of this code is only used by scsi. I really wonder if we should move it into scsi instead, and if not at least make it a selectable option that only scsi selects.