mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Thomas Gleixner <tglx@linutronix.de>
To: "Luiz Fernando N. Capitulino" <lcapitulino@mandriva.com.br>
Cc: herton@mandriva.com.br,
	Mikhail Kshevetskiy <mikhail.kshevetskiy@gmail.com>,
	LKML <linux-kernel@vger.kernel.org>
Subject: Re: 2.6.27-rc5 doesn't boot on a Pavilion laptop
Date: Wed, 3 Sep 2008 17:15:40 +0200 (CEST)	[thread overview]
Message-ID: <alpine.LFD.1.10.0809031713040.3243@apollo.tec.linutronix.de> (raw)
In-Reply-To: <alpine.LFD.1.10.0809031635260.3243@apollo.tec.linutronix.de>

On Wed, 3 Sep 2008, Thomas Gleixner wrote:
> Dont think so. Your dmesg outputs do not show any sign of that
> disease.
> 
> Can you try the patch below please ?

I found another instance of possible double init/shutdown. Please add
the patch below on top of the other 2 as well.

Thanks,

	tglx
---
 kernel/time/tick-broadcast.c |   11 +++++++----
 1 file changed, 7 insertions(+), 4 deletions(-)

Index: linux-2.6/kernel/time/tick-broadcast.c
===================================================================
--- linux-2.6.orig/kernel/time/tick-broadcast.c
+++ linux-2.6/kernel/time/tick-broadcast.c
@@ -210,7 +210,7 @@ static void tick_do_broadcast_on_off(voi
 	struct clock_event_device *bc, *dev;
 	struct tick_device *td;
 	unsigned long flags, *reason = why;
-	int cpu;
+	int cpu, bc_stopped;
 
 	spin_lock_irqsave(&tick_broadcast_lock, flags);
 
@@ -228,6 +228,8 @@ static void tick_do_broadcast_on_off(voi
 	if (!tick_device_is_functional(dev))
 		goto out;
 
+	bc_stoppped = cpus_empty(tick_broadcast_mask);
+
 	switch (*reason) {
 	case CLOCK_EVT_NOTIFY_BROADCAST_ON:
 	case CLOCK_EVT_NOTIFY_BROADCAST_FORCE:
@@ -250,9 +252,10 @@ static void tick_do_broadcast_on_off(voi
 		break;
 	}
 
-	if (cpus_empty(tick_broadcast_mask))
-		clockevents_set_mode(bc, CLOCK_EVT_MODE_SHUTDOWN);
-	else {
+	if (cpus_empty(tick_broadcast_mask)) {
+		if (!bc_stopped)
+			clockevents_set_mode(bc, CLOCK_EVT_MODE_SHUTDOWN);
+	} else if (bc_stopped) {
 		if (tick_broadcast_device.mode == TICKDEV_MODE_PERIODIC)
 			tick_broadcast_start_periodic(bc);
 		else

  reply	other threads:[~2008-09-03 15:16 UTC|newest]

Thread overview: 24+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-09-02 19:35 Luiz Fernando N. Capitulino
2008-09-02 20:18 ` Thomas Gleixner
2008-09-02 20:40   ` Diego Woitasen
2008-09-03 13:38     ` Luiz Fernando N. Capitulino
2008-09-02 20:55   ` Luiz Fernando N. Capitulino
2008-09-03 10:04     ` Thomas Gleixner
2008-09-03 13:41       ` Luiz Fernando N. Capitulino
2008-09-03 14:36         ` Thomas Gleixner
2008-09-03 15:15           ` Thomas Gleixner [this message]
2008-09-03 16:40             ` Luiz Fernando N. Capitulino
2008-09-03 16:44             ` Dmitry Nezhevenko
2008-09-03 17:05               ` Thomas Gleixner
2008-09-03 17:36                 ` Luiz Fernando N. Capitulino
2008-09-03 18:40                   ` Thomas Gleixner
2008-09-03 19:01                     ` Dmitry Nezhevenko
2008-09-03 19:08                       ` Thomas Gleixner
2008-09-03 19:21                         ` Dmitry Nezhevenko
2008-09-03 19:35                           ` Thomas Gleixner
2008-09-03 19:07                     ` Luiz Fernando N. Capitulino
2008-09-03 19:10                       ` Thomas Gleixner
2008-09-03 19:36                         ` Luiz Fernando N. Capitulino
2008-09-03 17:54                 ` Dmitry Nezhevenko
2008-09-03 18:58                   ` Thomas Gleixner
2008-09-03 16:38           ` Luiz Fernando N. Capitulino

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=alpine.LFD.1.10.0809031713040.3243@apollo.tec.linutronix.de \
    --to=tglx@linutronix.de \
    --cc=herton@mandriva.com.br \
    --cc=lcapitulino@mandriva.com.br \
    --cc=linux-kernel@vger.kernel.org \
    --cc=mikhail.kshevetskiy@gmail.com \
    /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

all inboxes | Powered by JetHome®