summaryrefslogtreecommitdiffstats
path: root/sys/kern/sched_ule.c
diff options
context:
space:
mode:
authorattilio <attilio@FreeBSD.org>2011-07-19 16:50:55 +0000
committerattilio <attilio@FreeBSD.org>2011-07-19 16:50:55 +0000
commit750fc68e279d75a52f59da8c7fea33c0bfc8d77b (patch)
tree93b13a7b0465647a6ec98c37c6a3f4360505773a /sys/kern/sched_ule.c
parentf16e320392a7bfd399c9e4c6b68c3ea659d2ac59 (diff)
downloadFreeBSD-src-750fc68e279d75a52f59da8c7fea33c0bfc8d77b.zip
FreeBSD-src-750fc68e279d75a52f59da8c7fea33c0bfc8d77b.tar.gz
Remove explicit MAXCPU usage from sys/pcpu.h avoiding a namespace
pollution. That is a step further in the direction of building correct policies for userland and modules on how to deal with the number of maxcpus at runtime. Reported by: jhb Reviewed and tested by: pluknet Approved by: re (kib)
Diffstat (limited to 'sys/kern/sched_ule.c')
-rw-r--r--sys/kern/sched_ule.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/kern/sched_ule.c b/sys/kern/sched_ule.c
index 05267f3..9bfb9e7 100644
--- a/sys/kern/sched_ule.c
+++ b/sys/kern/sched_ule.c
@@ -84,7 +84,7 @@ dtrace_vtime_switch_func_t dtrace_vtime_switch_func;
#define TS_NAME_LEN (MAXCOMLEN + sizeof(" td ") + sizeof(__XSTRING(UINT_MAX)))
#define TDQ_NAME_LEN (sizeof("sched lock ") + sizeof(__XSTRING(MAXCPU)))
-#define TDQ_LOADNAME_LEN (PCPU_NAME_LEN + sizeof(" load"))
+#define TDQ_LOADNAME_LEN (sizeof("CPU ") + sizeof(__XSTRING(MAXCPU)) - 1 + sizeof(" load"))
/*
* Thread scheduler specific section. All fields are protected
OpenPOWER on IntegriCloud