[patch 2/7] tick: Convert broadcast cpu bitmaps to cpumask_var_t
Rusty Russell
rusty at rustcorp.com.au
Thu Mar 7 00:51:23 EST 2013
Thomas Gleixner <tglx at linutronix.de> writes:
> Signed-off-by: Thomas Gleixner <tglx at linutronix.de>
> Cc: Rusty Russell <rusty at rustcorp.com.au>
> ---
> kernel/time/tick-broadcast.c | 86 +++++++++++++++++++++----------------------
> kernel/time/tick-common.c | 1
> kernel/time/tick-internal.h | 3 +
> 3 files changed, 46 insertions(+), 44 deletions(-)
>
> Index: tip/kernel/time/tick-broadcast.c
> ===================================================================
> --- tip.orig/kernel/time/tick-broadcast.c
> +++ tip/kernel/time/tick-broadcast.c
> @@ -28,9 +28,8 @@
> */
>
> static struct tick_device tick_broadcast_device;
> -/* FIXME: Use cpumask_var_t. */
> -static DECLARE_BITMAP(tick_broadcast_mask, NR_CPUS);
> -static DECLARE_BITMAP(tmpmask, NR_CPUS);
> +static cpumask_var_t tick_broadcast_mask;
> +static cpumask_var_t tmpmask;
> static DEFINE_RAW_SPINLOCK(tick_broadcast_lock);
> static int tick_broadcast_force;
Thanks, this is a nice cleanup.
Cheers,
Rusty.
More information about the linux-arm-kernel
mailing list