summaryrefslogtreecommitdiff
path: root/kern/thread.c
diff options
context:
space:
mode:
authorRichard Braun <rbraun@sceen.net>2017-01-24 00:33:55 +0100
committerRichard Braun <rbraun@sceen.net>2017-01-24 00:33:55 +0100
commit01d8174055a1fe4c5914fb9f122099bf6b1d63f4 (patch)
treefd77b7ec5fae42ea397fe080cb141e90afd64c5b /kern/thread.c
parent5548178e6c7355c250f2d938e7502040c55228a3 (diff)
kern/thread: add the THREAD_KERNEL_PREFIX macro
This macro is used to build kernel thread names.
Diffstat (limited to 'kern/thread.c')
-rw-r--r--kern/thread.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/kern/thread.c b/kern/thread.c
index 09159f62..b66136ca 100644
--- a/kern/thread.c
+++ b/kern/thread.c
@@ -1711,7 +1711,7 @@ thread_setup_reaper(void)
condition_init(&thread_reap_cond);
list_init(&thread_reap_list);
- thread_attr_init(&attr, "x15_thread_reap");
+ thread_attr_init(&attr, THREAD_KERNEL_PREFIX "thread_reap");
error = thread_create(&thread, &attr, thread_reap, NULL);
if (error) {
@@ -1785,7 +1785,7 @@ thread_setup_balancer(struct thread_runq *runq)
cpumap_zero(cpumap);
cpumap_set(cpumap, thread_runq_cpu(runq));
- snprintf(name, sizeof(name), "x15_thread_balance/%u",
+ snprintf(name, sizeof(name), THREAD_KERNEL_PREFIX "thread_balance/%u",
thread_runq_cpu(runq));
thread_attr_init(&attr, name);
thread_attr_set_cpumap(&attr, cpumap);
@@ -1871,7 +1871,8 @@ thread_setup_idler(struct thread_runq *runq)
panic("thread: unable to allocate idler thread stack");
}
- snprintf(name, sizeof(name), "x15_thread_idle/%u", thread_runq_cpu(runq));
+ snprintf(name, sizeof(name), THREAD_KERNEL_PREFIX "thread_idle/%u",
+ thread_runq_cpu(runq));
thread_attr_init(&attr, name);
thread_attr_set_cpumap(&attr, cpumap);
thread_attr_set_policy(&attr, THREAD_SCHED_POLICY_IDLE);