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:
5a4f3ea
)
[PATCH] sched: calc_delta_mine(): use fixed limit
author
Ingo Molnar
<mingo@elte.hu>
Thu, 2 Aug 2007 15:41:40 +0000
(17:41 +0200)
committer
Ingo Molnar
<mingo@elte.hu>
Thu, 2 Aug 2007 15:41:40 +0000
(17:41 +0200)
use fixed limit in calc_delta_mine() - this saves an instruction :)
Signed-off-by: Ingo Molnar <mingo@elte.hu>
kernel/sched.c
patch
|
blob
|
history
diff --git
a/kernel/sched.c
b/kernel/sched.c
index ed8cebf53286c089e85401db374f6610473b5398..b2bc8fa24ba7670e7c3b2a17b58b155def37e98b 100644
(file)
--- a/
kernel/sched.c
+++ b/
kernel/sched.c
@@
-657,7
+657,7
@@
calc_delta_mine(unsigned long delta_exec, unsigned long weight,
tmp = (tmp * lw->inv_weight) >> WMULT_SHIFT;
}
- return (unsigned long)min(tmp, (u64)
sysctl_sched_runtime_limit
);
+ return (unsigned long)min(tmp, (u64)
(unsigned long)LONG_MAX
);
}
static inline unsigned long