From: Sven Joachim <svenjoac@gmx.de>
To: Thomas Gleixner <tglx@linutronix.de>
Cc: "Rafael J. Wysocki" <rjw@sisk.pl>,
Linus Torvalds <torvalds@linux-foundation.org>,
Ingo Molnar <mingo@kernel.org>,
Linux Kernel Mailing List <linux-kernel@vger.kernel.org>,
Suresh Siddha <suresh.b.siddha@intel.com>
Subject: Re: kernel panic after suspend/resume
Date: Wed, 18 Apr 2012 13:03:34 +0200 [thread overview]
Message-ID: <87pqb55mk9.fsf@turtle.gmx.de> (raw)
In-Reply-To: <alpine.LFD.2.02.1204181205540.2542@ionos> (Thomas Gleixner's message of "Wed, 18 Apr 2012 12:08:23 +0200 (CEST)")
Am 18.04.2012 um 12:08 schrieb Thomas Gleixner:
> On Wed, 18 Apr 2012, Sven Joachim wrote:
>
>> On 2012-04-17 23:21 +0200, Rafael J. Wysocki wrote:
>>
>> > Well, commit fa4da365bc7772c kind of looks like it might be the source of
>> > this trouble. Sven, can you try to revert it, please?
>>
>> This seems to do the trick, thanks.
>
> Can you try the following patch instead?
Appears to work fine, thanks.
> diff --git a/kernel/time/tick-broadcast.c b/kernel/time/tick-broadcast.c
> index bf57abd..119aca5 100644
> --- a/kernel/time/tick-broadcast.c
> +++ b/kernel/time/tick-broadcast.c
> @@ -531,7 +531,6 @@ void tick_broadcast_setup_oneshot(struct clock_event_device *bc)
> int was_periodic = bc->mode == CLOCK_EVT_MODE_PERIODIC;
>
> bc->event_handler = tick_handle_oneshot_broadcast;
> - clockevents_set_mode(bc, CLOCK_EVT_MODE_ONESHOT);
>
> /* Take the do_timer update */
> tick_do_timer_cpu = cpu;
> @@ -549,6 +548,7 @@ void tick_broadcast_setup_oneshot(struct clock_event_device *bc)
> to_cpumask(tmpmask));
>
> if (was_periodic && !cpumask_empty(to_cpumask(tmpmask))) {
> + clockevents_set_mode(bc, CLOCK_EVT_MODE_ONESHOT);
> tick_broadcast_init_next_event(to_cpumask(tmpmask),
> tick_next_period);
> tick_broadcast_set_event(tick_next_period, 1);
> @@ -577,15 +577,10 @@ void tick_broadcast_switch_to_oneshot(void)
> raw_spin_lock_irqsave(&tick_broadcast_lock, flags);
>
> tick_broadcast_device.mode = TICKDEV_MODE_ONESHOT;
> -
> - if (cpumask_empty(tick_get_broadcast_mask()))
> - goto end;
> -
> bc = tick_broadcast_device.evtdev;
> if (bc)
> tick_broadcast_setup_oneshot(bc);
>
> -end:
> raw_spin_unlock_irqrestore(&tick_broadcast_lock, flags);
> }
next prev parent reply other threads:[~2012-04-18 11:03 UTC|newest]
Thread overview: 23+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-04-16 1:49 Linux 3.4-rc3 Linus Torvalds
2012-04-17 15:24 ` kernel panic after suspend/resume (was: Linux 3.4-rc3) Sven Joachim
2012-04-17 16:00 ` Linus Torvalds
2012-04-17 18:12 ` kernel panic after suspend/resume Sven Joachim
2012-04-17 19:50 ` Linus Torvalds
2012-04-17 22:13 ` Thomas Gleixner
2012-04-18 5:27 ` Sven Joachim
2012-04-17 21:21 ` kernel panic after suspend/resume (was: Linux 3.4-rc3) Rafael J. Wysocki
2012-04-18 8:22 ` kernel panic after suspend/resume Sven Joachim
2012-04-18 9:36 ` Rafael J. Wysocki
2012-04-18 10:08 ` Thomas Gleixner
2012-04-18 11:03 ` Sven Joachim [this message]
2012-04-18 12:07 ` [tip:timers/urgent] tick: Fix oneshot broadcast setup really tip-bot for Thomas Gleixner
2012-04-18 13:19 ` Shilimkar, Santosh
2012-04-18 14:18 ` Santosh Shilimkar
2012-04-18 15:31 ` Thomas Gleixner
2012-04-18 15:51 ` Santosh Shilimkar
2012-04-19 2:27 ` Suresh Siddha
2012-04-19 8:29 ` Thomas Gleixner
2012-04-19 10:14 ` Santosh Shilimkar
2012-04-19 10:37 ` Sven Joachim
2012-04-19 19:38 ` [tip:timers/urgent] tick: Fix the spurious broadcast timer ticks after resume tip-bot for Suresh Siddha
2012-04-19 19:37 ` [tip:timers/urgent] tick: Ensure that the broadcast device is initialized tip-bot for Thomas Gleixner
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87pqb55mk9.fsf@turtle.gmx.de \
--to=svenjoac@gmx.de \
--cc=linux-kernel@vger.kernel.org \
--cc=mingo@kernel.org \
--cc=rjw@sisk.pl \
--cc=suresh.b.siddha@intel.com \
--cc=tglx@linutronix.de \
--cc=torvalds@linux-foundation.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox