Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit d9e3f7c5 authored by arter97's avatar arter97 Committed by Samuel Pascua
Browse files

block: cgroups, kconfig, build bits for BFQ-v6r2-3.3

Conflicts:
	block/Kconfig.iosched
	block/Makefile
	include/linux/cgroup_subsys.h

Change-Id: I5da988068eb0b7c1c5e4a5fcb8c8784a7e9d2211
parent cc9fa78f
Loading
Loading
Loading
Loading
+26 −0
Original line number Diff line number Diff line
@@ -78,6 +78,28 @@ config IOSCHED_FIOPS
          IOPS equally among all processes in the system. It's mainly for
          Flash based storage.

config IOSCHED_BFQ
	tristate "BFQ I/O scheduler"
	depends on EXPERIMENTAL
	default y
	---help---
	  The BFQ I/O scheduler tries to distribute bandwidth among
	  all processes according to their weights.
	  It aims at distributing the bandwidth as desired, independently of
	  the disk parameters and with any workload. It also tries to
	  guarantee low latency to interactive and soft real-time
	  applications.  If compiled built-in (saying Y here), BFQ can
	  be configured to support hierarchical scheduling.

config CGROUP_BFQIO
	bool "BFQ hierarchical scheduling support"
	depends on CGROUPS && IOSCHED_BFQ=y
	default n
	---help---
	  Enable hierarchical scheduling in BFQ, using the cgroups
	  filesystem interface.  The name of the subsystem will be
	  bfqio.

choice
	prompt "Default I/O scheduler"
	default DEFAULT_CFQ
@@ -104,6 +126,9 @@ choice
	config DEFAULT_FIOPS
		bool "FIOPS" if IOSCHED_FIOPS=y

	config DEFAULT_BFQ
		bool "BFQ" if IOSCHED_BFQ=y

	config DEFAULT_NOOP
		bool "No-op"

@@ -117,6 +142,7 @@ endchoice
config DEFAULT_IOSCHED
	string
	default "deadline" if DEFAULT_DEADLINE
	default "bfq" if DEFAULT_BFQ
	default "row" if DEFAULT_ROW
	default "cfq" if DEFAULT_CFQ
	default "fiops" if DEFAULT_FIOPS
+1 −0
Original line number Diff line number Diff line
@@ -12,6 +12,7 @@ obj-$(CONFIG_BLK_CGROUP) += blk-cgroup.o
obj-$(CONFIG_BLK_DEV_THROTTLING)	+= blk-throttle.o
obj-$(CONFIG_IOSCHED_NOOP)	+= noop-iosched.o
obj-$(CONFIG_IOSCHED_DEADLINE)	+= deadline-iosched.o
obj-$(CONFIG_IOSCHED_BFQ)	+= bfq-iosched.o
obj-$(CONFIG_IOSCHED_ROW)	+= row-iosched.o
obj-$(CONFIG_IOSCHED_CFQ)	+= cfq-iosched.o
obj-$(CONFIG_IOSCHED_SIO)	+= sio-iosched.o
+6 −0
Original line number Diff line number Diff line
@@ -70,3 +70,9 @@ SUBSYS(bfqio)
#endif

/* */

#ifdef CONFIG_CGROUP_BFQIO
SUBSYS(bfqio)
#endif

/* */