aboutsummaryrefslogtreecommitdiff
path: root/lib/base/ioprio.h
diff options
context:
space:
mode:
authorAndreas Monzner <andreas.monzner@multimedia-labs.de>2006-06-17 15:23:50 +0000
committerAndreas Monzner <andreas.monzner@multimedia-labs.de>2006-06-17 15:23:50 +0000
commit9c3098c8667241d18d2551a9a37ce7fbce396b71 (patch)
tree6f5091be55ccf279c031237e4bcc7885ff9e1dfa /lib/base/ioprio.h
parentedd6a4323551d1ad246b0e31c0485acc8353e1cb (diff)
downloadenigma2-9c3098c8667241d18d2551a9a37ce7fbce396b71.tar.gz
enigma2-9c3098c8667241d18d2551a9a37ce7fbce396b71.zip
I/O priority support with cfq scheduler (needs new kernel patch)
Diffstat (limited to 'lib/base/ioprio.h')
-rw-r--r--lib/base/ioprio.h14
1 files changed, 14 insertions, 0 deletions
diff --git a/lib/base/ioprio.h b/lib/base/ioprio.h
new file mode 100644
index 00000000..498a473e
--- /dev/null
+++ b/lib/base/ioprio.h
@@ -0,0 +1,14 @@
+#ifndef __LIB_BASE_IOPRIO_H_
+#define __LIB_BASE_IOPRIO_H_
+
+void setIoPrio(int prio_class, int prio=7);
+void printIoPrio();
+
+enum {
+ IOPRIO_CLASS_NONE,
+ IOPRIO_CLASS_RT,
+ IOPRIO_CLASS_BE,
+ IOPRIO_CLASS_IDLE,
+};
+
+#endif // __LIB_BASE_IOPRIO_H_