Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 372904
b: refs/heads/master
c: 1034fc2
h: refs/heads/master
v: v3
  • Loading branch information
Frederic Weisbecker committed Apr 3, 2013
1 parent 06811fa commit 1b169a0
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 1 deletion.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 3ca277e41914ab344214ed50a41c14c48ae973f3
refs/heads/master: 1034fc2f41aaf32f782a9362178f9a236ac5a50a
10 changes: 10 additions & 0 deletions trunk/kernel/time/tick-sched.c
Original file line number Diff line number Diff line change
Expand Up @@ -186,6 +186,13 @@ static int __cpuinit tick_nohz_cpu_down_callback(struct notifier_block *nfb,
return NOTIFY_OK;
}

/*
* Worst case string length in chunks of CPU range seems 2 steps
* separations: 0,2,4,6,...
* This is NR_CPUS + sizeof('\0')
*/
static char __initdata nohz_ext_buf[NR_CPUS + 1];

static int __init init_tick_nohz_extended(void)
{
cpumask_var_t online_nohz;
Expand Down Expand Up @@ -225,6 +232,9 @@ static int __init init_tick_nohz_extended(void)
put_online_cpus();
free_cpumask_var(online_nohz);

cpulist_scnprintf(nohz_ext_buf, sizeof(nohz_ext_buf), nohz_extended_mask);
pr_info("NO_HZ: Full dynticks CPUs: %s.\n", nohz_ext_buf);

return 0;
}
core_initcall(init_tick_nohz_extended);
Expand Down

0 comments on commit 1b169a0

Please sign in to comment.