Skip to contentSkip to conversation

io-controller: including "linux/sched.h"

PATCH In review Gui Jianfeng 2 participants 3 messages Apr 16, 2010

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 io-controller: including "linux/sched.h"

Include sched.h explicitly since sched_clock() is called.

---
 block/blk-cgroup.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)
block/blk-cgroup.c +1 -0
index 83930f6..ed6590e 100644
@@ -19,6 +19,7 @@
 #include <linux/slab.h>
 #include "blk-cgroup.h"
 #include <linux/genhd.h>
+#include <linux/sched.h>
 
 #define MAX_KEY_LEN 100
 
Signature · 1 line
1.5.4.rc3
#1 lore raw
Quoted 1 line · Gui Jianfeng

Include sched.h explicitly since sched_clock() is called.

Why is it using sched_clock(), btw? It would seem more appropriate to use ktime.

Signature · 1 line
Jens Axboe
#2 lore raw
Quoted 5 lines · Jens Axboe
Quoted 1 line · Gui Jianfeng

Include sched.h explicitly since sched_clock() is called.

Why is it using sched_clock(), btw? It would seem more appropriate to use ktime.

I guess the reason is it's easy to use. :)
Divyesh, right?

Gui

Quoted 1 line