浏览代码

linux: allow to select IO scheduler, default to deadline

Waldemar Brodkorb 8 年之前
父节点
当前提交
40480aab2e
共有 1 个文件被更改,包括 26 次插入0 次删除
  1. 26 0
      target/linux/config/Config.in.block

+ 26 - 0
target/linux/config/Config.in.block

@@ -8,6 +8,32 @@ menu "Block devices support"
 depends on ADK_TARGET_WITH_BLOCK \
 	|| ADK_TARGET_GENERIC
 
+config ADK_KERNEL_IOSCHED_DEADLINE
+	bool
+
+config ADK_KERNEL_IOSCHED_CFQ
+	bool
+
+config ADK_KERNEL_IOSCHED_NOOP
+	bool
+
+choice
+prompt "I/O scheduler"
+
+config ADK_KERNEL_DEFAULT_DEADLINE
+	bool "deadline"
+	select ADK_KERNEL_IOSCHED_DEADLINE
+
+config ADK_KERNEL_DEFAULT_CFQ
+	bool "cfq"
+	select ADK_KERNEL_IOSCHED_CFQ
+
+config ADK_KERNEL_DEFAULT_NOOP
+	bool "noop"
+	select ADK_KERNEL_IOSCHED_NOOP
+
+endchoice
+
 config ADK_KERNEL_IDE
 	bool