[PATCH 16/19] smart: change default RR timeslice to 5ms

From: klamm
Date: Thu Sep 04 2014 - 12:40:40 EST


From: Roman Gushchin <klamm@xxxxxxxxxxxxxx>

By default, SCHED_RR timeslice is 100ms. Change it to 5ms to achieve
better responsibility.

Signed-off-by: Roman Gushchin <klamm@xxxxxxxxxxxxxx>
---
include/linux/sched/rt.h | 4 ++++
1 file changed, 4 insertions(+)

diff --git a/include/linux/sched/rt.h b/include/linux/sched/rt.h
index 440434d..988eae8 100644
--- a/include/linux/sched/rt.h
+++ b/include/linux/sched/rt.h
@@ -59,6 +59,10 @@ extern void normalize_rt_tasks(void);
* default timeslice is 100 msecs (used only for SCHED_RR tasks).
* Timeslices get refilled after they expire.
*/
+#ifdef CONFIG_SMART
+#define RR_TIMESLICE (5 * HZ / 1000)
+#else
#define RR_TIMESLICE (100 * HZ / 1000)
+#endif

#endif /* _SCHED_RT_H */
--
1.9.3

--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/