diff options
author | Richard Braun <rbraun@sceen.net> | 2014-05-08 08:46:20 +0200 |
---|---|---|
committer | Richard Braun <rbraun@sceen.net> | 2014-05-08 08:46:20 +0200 |
commit | 93f4413ae2968e51ef22262e185450caae86773e (patch) | |
tree | fad7ecd153c21ae6e1f1eea7a500efc0847283db | |
parent | a6d06aa4c07cc6291bc22600768f89f7bfd3e26b (diff) |
kern/thread: change the policy of balancer threads
There doesn't seem to be a need for round-robin scheduling, use the
simpler FIFO policy.
-rw-r--r-- | kern/thread.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/kern/thread.c b/kern/thread.c index b66d7303..a7e1b8bb 100644 --- a/kern/thread.c +++ b/kern/thread.c @@ -1652,7 +1652,7 @@ thread_setup_balancer(struct thread_runq *runq) snprintf(name, sizeof(name), "x15_thread_balance/%u", thread_runq_id(runq)); thread_attr_init(&attr, name); thread_attr_set_cpumap(&attr, cpumap); - thread_attr_set_policy(&attr, THREAD_SCHED_POLICY_RR); + thread_attr_set_policy(&attr, THREAD_SCHED_POLICY_FIFO); thread_attr_set_priority(&attr, THREAD_SCHED_RT_PRIO_MIN); error = thread_create(&balancer, &attr, thread_balance, runq); cpumap_destroy(cpumap); |