Commit 65a1432b authored by Alexey Kuznetsov's avatar Alexey Kuznetsov Committed by David S. Miller

[PKT_SCHED]: More reasonable PSCHED_JSCALE for various values of HZ.

parent 7155c258
...@@ -216,12 +216,16 @@ extern psched_time_t psched_time_base; ...@@ -216,12 +216,16 @@ extern psched_time_t psched_time_base;
#if PSCHED_CLOCK_SOURCE == PSCHED_JIFFIES #if PSCHED_CLOCK_SOURCE == PSCHED_JIFFIES
#if HZ == 100 #if HZ < 96
#define PSCHED_JSCALE 14
#elif HZ >= 96 && HZ < 192
#define PSCHED_JSCALE 13 #define PSCHED_JSCALE 13
#elif HZ == 1024 #elif HZ >= 192 && HZ < 384
#define PSCHED_JSCALE 12
#elif HZ >= 384 && HZ < 768
#define PSCHED_JSCALE 11
#elif HZ >= 768
#define PSCHED_JSCALE 10 #define PSCHED_JSCALE 10
#else
#define PSCHED_JSCALE 0
#endif #endif
#define PSCHED_EXPORTLIST_2 #define PSCHED_EXPORTLIST_2
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment