diff options
author | Richard Braun <rbraun@sceen.net> | 2017-03-14 20:34:21 +0100 |
---|---|---|
committer | Richard Braun <rbraun@sceen.net> | 2017-03-14 20:34:21 +0100 |
commit | b409e4e8eb18e7a6bf09a18e662f742587af40a1 (patch) | |
tree | 4e5b3386771282ecd115b65304ff09f07f23d532 /kern/sref.c | |
parent | 3794ef2cc675449700d52365041d2370288382e4 (diff) |
kern/sref: make manager threads use a high fair-scheduling priority
Diffstat (limited to 'kern/sref.c')
-rw-r--r-- | kern/sref.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/kern/sref.c b/kern/sref.c index 9bffbe9..3172bbe 100644 --- a/kern/sref.c +++ b/kern/sref.c @@ -850,8 +850,7 @@ sref_setup_manager(struct sref_cache *cache, unsigned int cpu) snprintf(name, sizeof(name), THREAD_KERNEL_PREFIX "sref_manage/%u", cpu); thread_attr_init(&attr, name); thread_attr_set_cpumap(&attr, cpumap); - thread_attr_set_policy(&attr, THREAD_SCHED_POLICY_FIFO); - thread_attr_set_priority(&attr, THREAD_SCHED_RT_PRIO_MIN); + thread_attr_set_priority(&attr, THREAD_SCHED_FS_PRIO_MAX); error = thread_create(&manager, &attr, sref_manage, cache); cpumap_destroy(cpumap); |