[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <alpine.SOC.1.00.1305272005540.2372@math.ut.ee>
Date: Mon, 27 May 2013 20:06:07 +0300 (EEST)
From: Meelis Roos <mroos@...ux.ee>
To: Thomas Gleixner <tglx@...utronix.de>
cc: Borislav Petkov <bp@...en8.de>,
Linux Kernel list <linux-kernel@...r.kernel.org>,
Frederic Weisbecker <fweisbec@...il.com>,
Len Brown <lenb@...nel.org>, "Rafael J. Wysocki" <rjw@...k.pl>
Subject: Re: 3.10-rc3: WARNING: at kernel/time/tick-broadcast.c:578
> Found another possibility how we end up with the stale flag.
This cures it, thank you!
> diff --git a/kernel/time/tick-broadcast.c b/kernel/time/tick-broadcast.c
> index 24938d5..0c73942 100644
> --- a/kernel/time/tick-broadcast.c
> +++ b/kernel/time/tick-broadcast.c
> @@ -511,6 +511,12 @@ again:
> }
> }
>
> + /*
> + * Remove the current cpu from the pending mask. The event is
> + * delivered immediately in tick_do_broadcast() !
> + */
> + cpumask_clear_cpu(smp_processor_id(), tick_broadcast_pending_mask);
> +
> /* Take care of enforced broadcast requests */
> cpumask_or(tmpmask, tmpmask, tick_broadcast_force_mask);
> cpumask_clear(tick_broadcast_force_mask);
> @@ -575,8 +581,8 @@ void tick_broadcast_oneshot_control(unsigned long reason)
>
> raw_spin_lock_irqsave(&tick_broadcast_lock, flags);
> if (reason == CLOCK_EVT_NOTIFY_BROADCAST_ENTER) {
> - WARN_ON_ONCE(cpumask_test_cpu(cpu, tick_broadcast_pending_mask));
> if (!cpumask_test_and_set_cpu(cpu, tick_broadcast_oneshot_mask)) {
> + WARN_ON_ONCE(cpumask_test_cpu(cpu, tick_broadcast_pending_mask));
> clockevents_set_mode(dev, CLOCK_EVT_MODE_SHUTDOWN);
> /*
> * We only reprogram the broadcast timer if we
>
--
Meelis Roos (mroos@...ux.ee)
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists