mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-09-06 10:57:46 +00:00
tick-broadcast: Fix the printing of broadcast masks
Today the number of bits of the broadcast masks that is output into /proc/timer_list is sizeof(unsigned long). This means that on machines with a larger number of CPUs, the bitmasks of CPUs beyond this range do not appear. Fix this by using bitmap printing through "%*pb" instead, so as to output the broadcast masks for the range of nr_cpu_ids into /proc/timer_list. Signed-off-by: Preeti U Murthy <preeti@linux.vnet.ibm.com> Cc: peterz@infradead.org Cc: linuxppc-dev@ozlabs.org Cc: john.stultz@linaro.org Link: http://lkml.kernel.org/r/20150428084520.3314.62668.stgit@preeti.in.ibm.com Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
This commit is contained in:
parent
298dbd1c5c
commit
1ef09cd713
1 changed files with 4 additions and 4 deletions
|
@ -276,11 +276,11 @@ static void timer_list_show_tickdevices_header(struct seq_file *m)
|
||||||
{
|
{
|
||||||
#ifdef CONFIG_GENERIC_CLOCKEVENTS_BROADCAST
|
#ifdef CONFIG_GENERIC_CLOCKEVENTS_BROADCAST
|
||||||
print_tickdevice(m, tick_get_broadcast_device(), -1);
|
print_tickdevice(m, tick_get_broadcast_device(), -1);
|
||||||
SEQ_printf(m, "tick_broadcast_mask: %08lx\n",
|
SEQ_printf(m, "tick_broadcast_mask: %*pb\n",
|
||||||
cpumask_bits(tick_get_broadcast_mask())[0]);
|
cpumask_pr_args(tick_get_broadcast_mask()));
|
||||||
#ifdef CONFIG_TICK_ONESHOT
|
#ifdef CONFIG_TICK_ONESHOT
|
||||||
SEQ_printf(m, "tick_broadcast_oneshot_mask: %08lx\n",
|
SEQ_printf(m, "tick_broadcast_oneshot_mask: %*pb\n",
|
||||||
cpumask_bits(tick_get_broadcast_oneshot_mask())[0]);
|
cpumask_pr_args(tick_get_broadcast_oneshot_mask()));
|
||||||
#endif
|
#endif
|
||||||
SEQ_printf(m, "\n");
|
SEQ_printf(m, "\n");
|
||||||
#endif
|
#endif
|
||||||
|
|
Loading…
Reference in a new issue