projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
398ca17
)
net: sched: Use hrtimer_resolution instead of hrtimer_get_res()
author
Thomas Gleixner
<
[email protected]
>
Tue, 14 Apr 2015 21:08:28 +0000
(21:08 +0000)
committer
Thomas Gleixner
<
[email protected]
>
Wed, 22 Apr 2015 15:06:48 +0000
(17:06 +0200)
No point in converting a timespec now that the value is directly
accessible.
Signed-off-by: Thomas Gleixner <
[email protected]
>
Acked-by: David S. Miller <
[email protected]
>
Acked-by: Peter Zijlstra <
[email protected]
>
Cc: Preeti U Murthy <
[email protected]
>
Cc: Viresh Kumar <
[email protected]
>
Cc: Marcelo Tosatti <
[email protected]
>
Cc: Frederic Weisbecker <
[email protected]
>
Cc: Jamal Hadi Salim <
[email protected]
>
Link:
http://lkml.kernel.org/r/
[email protected]
Signed-off-by: Thomas Gleixner <
[email protected]
>
net/sched/sch_api.c
patch
|
blob
|
history
diff --git
a/net/sched/sch_api.c
b/net/sched/sch_api.c
index ad9eed70bc8f8e16c3118c6527374a952823e2c0..45bc63ae18e3ae9a5fe2a80e9de4763cac39cebd 100644
(file)
--- a/
net/sched/sch_api.c
+++ b/
net/sched/sch_api.c
@@
-1883,13
+1883,10
@@
EXPORT_SYMBOL(tcf_destroy_chain);
#ifdef CONFIG_PROC_FS
static int psched_show(struct seq_file *seq, void *v)
{
- struct timespec ts;
-
- hrtimer_get_res(CLOCK_MONOTONIC, &ts);
seq_printf(seq, "%08x %08x %08x %08x\n",
(u32)NSEC_PER_USEC, (u32)PSCHED_TICKS2NS(1),
1000000,
- (u32)NSEC_PER_SEC
/(u32)ktime_to_ns(timespec_to_ktime(ts))
);
+ (u32)NSEC_PER_SEC
/ hrtimer_resolution
);
return 0;
}