mirror of
https://mirrors.bfsu.edu.cn/git/linux.git
synced 2024-11-26 21:54:11 +08:00
cpumask: avoid dereferencing struct cpumask
struct cpumask will be undefined soon with CONFIG_CPUMASK_OFFSTACK=y, to avoid them being declared on the stack. cpumask_bits() does what we want here (of course, this code is crap). Signed-off-by: Rusty Russell <rusty@rustcorp.com.au> To: Thomas Gleixner <tglx@linutronix.de>
This commit is contained in:
parent
cc216b86e5
commit
62ac127950
@ -237,10 +237,10 @@ static void timer_list_show_tickdevices(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: %08lx\n",
|
||||||
tick_get_broadcast_mask()->bits[0]);
|
cpumask_bits(tick_get_broadcast_mask())[0]);
|
||||||
#ifdef CONFIG_TICK_ONESHOT
|
#ifdef CONFIG_TICK_ONESHOT
|
||||||
SEQ_printf(m, "tick_broadcast_oneshot_mask: %08lx\n",
|
SEQ_printf(m, "tick_broadcast_oneshot_mask: %08lx\n",
|
||||||
tick_get_broadcast_oneshot_mask()->bits[0]);
|
cpumask_bits(tick_get_broadcast_oneshot_mask())[0]);
|
||||||
#endif
|
#endif
|
||||||
SEQ_printf(m, "\n");
|
SEQ_printf(m, "\n");
|
||||||
#endif
|
#endif
|
||||||
|
Loading…
Reference in New Issue
Block a user