diff options
-rw-r--r-- | kernel/time/tick-sched.c | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/kernel/time/tick-sched.c b/kernel/time/tick-sched.c index ccfc2086cd4b..e057d338daa4 100644 --- a/kernel/time/tick-sched.c +++ b/kernel/time/tick-sched.c | |||
@@ -186,6 +186,13 @@ static int __cpuinit tick_nohz_cpu_down_callback(struct notifier_block *nfb, | |||
186 | return NOTIFY_OK; | 186 | return NOTIFY_OK; |
187 | } | 187 | } |
188 | 188 | ||
189 | /* | ||
190 | * Worst case string length in chunks of CPU range seems 2 steps | ||
191 | * separations: 0,2,4,6,... | ||
192 | * This is NR_CPUS + sizeof('\0') | ||
193 | */ | ||
194 | static char __initdata nohz_ext_buf[NR_CPUS + 1]; | ||
195 | |||
189 | static int __init init_tick_nohz_extended(void) | 196 | static int __init init_tick_nohz_extended(void) |
190 | { | 197 | { |
191 | cpumask_var_t online_nohz; | 198 | cpumask_var_t online_nohz; |
@@ -225,6 +232,9 @@ static int __init init_tick_nohz_extended(void) | |||
225 | put_online_cpus(); | 232 | put_online_cpus(); |
226 | free_cpumask_var(online_nohz); | 233 | free_cpumask_var(online_nohz); |
227 | 234 | ||
235 | cpulist_scnprintf(nohz_ext_buf, sizeof(nohz_ext_buf), nohz_extended_mask); | ||
236 | pr_info("NO_HZ: Full dynticks CPUs: %s.\n", nohz_ext_buf); | ||
237 | |||
228 | return 0; | 238 | return 0; |
229 | } | 239 | } |
230 | core_initcall(init_tick_nohz_extended); | 240 | core_initcall(init_tick_nohz_extended); |