All of lore.kernel.org
 help / color / mirror / Atom feed
From: Thomas Renninger <trenn@suse.de>
To: Dave Jones <davej@redhat.com>
Cc: Avuton Olrich <avuton@gmail.com>, Andrew Morton <akpm@osdl.org>,
	linux-kernel@vger.kernel.org
Subject: [PATCH 2/2] Re: 2.6.16-rc1-mm4
Date: Wed, 1 Feb 2006 11:38:37 +0100	[thread overview]
Message-ID: <200602011138.38065.trenn@suse.de> (raw)
In-Reply-To: <20060201005930.GR16557@redhat.com>

On Wednesday 01 February 2006 01:59, Dave Jones wrote:
> On Tue, Jan 31, 2006 at 07:19:40PM -0500, Dave Jones wrote:
>  > On Tue, Jan 31, 2006 at 02:45:58PM -0800, Avuton Olrich wrote:
>  >  > On 1/29/06, Andrew Morton <akpm@osdl.org> wrote:
>  >  > >
>  >  > > ftp://ftp.kernel.org/pub/linux/kernel/people/akpm/patches/2.6/2.6.16-rc1/2.6.16-rc1-mm4/
>  >  > 
>  >  > I'm getting a kernel panic on my Libretto L5 on boot, I don't have a
>  >  > serial port on this laptop, I don't have time at the moment to setup
>  >  > netconsole, and it doesn't get the full information. Hopefully this
>  >  > picture helps a bit:
>  >  > 
>  >  > http://68.111.224.150:8080/P1010306.JPG
>  >  > 
>  >  > If it doesn't help I will attempt to get a netconsole on this computer
>  >  > on the near future.
>  > 
>  > Thomas recently changed cpufreq_update_policy to call cpufreq_out_of_sync()
>  > to resync when the BIOS changed the frequency behind our back.
>  > The div by 0 trace fingers that code, but I'm puzzled what we're actually
>  > dividing there.
> 
> it'd be interesting to see the output of cpufreq.debug=7 to see
> what adjust_jiffies is getting before we div by 0, though I fear
> it'll scroll off the screen before we get a chance to capture it.
> 

Test for old_freq equals 0 to insure not to divide by 0:
______________________________________________

Check for not initialized freq on cpufreq changes

signed-off-by: Thomas Renninger <trenn@suse.de>


Index: linux-2.6.16-rc1-mm3/arch/i386/kernel/timers/timer_tsc.c
===================================================================
--- linux-2.6.16-rc1-mm3.orig/arch/i386/kernel/timers/timer_tsc.c
+++ linux-2.6.16-rc1-mm3/arch/i386/kernel/timers/timer_tsc.c
@@ -272,6 +272,10 @@ time_cpufreq_notifier(struct notifier_bl
 	if (val != CPUFREQ_RESUMECHANGE)
 		write_seqlock_irq(&xtime_lock);
 	if (!ref_freq) {
+		if (!freq->old){
+			ref_freq = freq->new;
+			goto end;
+		}
 		ref_freq = freq->old;
 		loops_per_jiffy_ref = cpu_data[freq->cpu].loops_per_jiffy;
 #ifndef CONFIG_SMP
@@ -297,6 +301,7 @@ time_cpufreq_notifier(struct notifier_bl
 #endif
 	}
 
+end:
 	if (val != CPUFREQ_RESUMECHANGE)
 		write_sequnlock_irq(&xtime_lock);
 

  parent reply	other threads:[~2006-02-01 10:38 UTC|newest]

Thread overview: 56+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-01-29 22:45 2.6.16-rc1-mm4 Andrew Morton
2006-01-29 23:19 ` 2.6.16-rc1-mm4 Jesper Juhl
2006-01-29 23:34 ` 2.6.16-rc1-mm4 Adrian Bunk
2006-01-29 23:40   ` 2.6.16-rc1-mm4 Randy.Dunlap
2006-01-29 23:58     ` 2.6.16-rc1-mm4 Adrian Bunk
2006-01-30  0:51       ` 2.6.16-rc1-mm4 Randy.Dunlap
2006-01-30  0:59         ` 2.6.16-rc1-mm4 Adrian Bunk
2006-01-29 23:42   ` 2.6.16-rc1-mm4 Adrian Bunk
2006-01-30  0:25   ` 2.6.16-rc1-mm4 Andrew Morton
2006-01-30  0:42     ` 2.6.16-rc1-mm4 Eric W. Biederman
2006-01-29 23:43 ` 2.6.16-rc1-mm4 Brice Goglin
2006-01-30  7:25 ` Reiser4 slowdown gone (was: Re: 2.6.16-rc1-mm4) Sander
2006-01-30  8:24   ` Reiser4 slowdown gone Joe Feise
2006-01-30  9:54     ` Sander
2006-01-30 23:46       ` Hans Reiser
2006-01-30  9:40 ` 2.6.16-rc1-mm4 Muli Ben-Yehuda
2006-01-30 13:52   ` 2.6.16-rc1-mm4 Mark Maule
2006-01-30 13:59     ` 2.6.16-rc1-mm4 Muli Ben-Yehuda
2006-01-30 11:23 ` 2.6.16-rc1-mm4 Marc Koschewski
2006-01-30 11:31   ` 2.6.16-rc1-mm4 Andrew Morton
2006-01-30 13:01     ` -git tree? (was Re: 2.6.16-rc1-mm4) Marc Koschewski
2006-01-30 14:01       ` Jiri Slaby
2006-01-30 14:13         ` Jiri Slaby
2006-01-30 15:47           ` Randy.Dunlap
2006-01-30 20:57             ` Andrew Morton
2006-01-30 13:20 ` 2.6.16-rc1-mm4 Al Boldi
2006-01-30 21:00   ` 2.6.16-rc1-mm4 Andrew Morton
2006-01-31 15:56     ` 2.6.16-rc1-mm4 Al Boldi
2006-01-31 22:01       ` 2.6.16-rc1-mm4 Andrew Morton
2006-02-01  0:50         ` 2.6.16-rc1-mm4 Randy.Dunlap
2006-02-01 13:58         ` 2.6.16-rc1-mm4 Al Boldi
2006-01-30 18:50 ` 2.6.16-rc1-mm4 Jindrich Makovicka
2006-01-31 20:24   ` vgacon scrolling problem [Was: Re: 2.6.16-rc1-mm4] Jiri Slaby
2006-01-31 20:35     ` Jindrich Makovicka
2006-01-31 21:02       ` Jiri Slaby
2006-02-01  0:36       ` Antonino A. Daplas
2006-01-30 19:04 ` 2.6.16-rc1-mm4 Martin Bligh
     [not found] ` <3aa654a40601311445t65fc9b6aqf2d565b72ded9c1a@mail.gmail.com>
2006-01-31 23:10   ` 2.6.16-rc1-mm4 Andrew Morton
     [not found]     ` <3aa654a40602010154r54e0072bp3e7bd46ce9aafa03@mail.gmail.com>
2006-02-01 10:06       ` 2.6.16-rc1-mm4 Andrew Morton
2006-02-01  0:19   ` 2.6.16-rc1-mm4 Dave Jones
2006-02-01  0:59     ` 2.6.16-rc1-mm4 Dave Jones
2006-02-01 10:36       ` [PATCH 1/2] 2.6.16-rc1-mm4 Thomas Renninger
2006-02-01 10:38       ` Thomas Renninger [this message]
     [not found]         ` <3aa654a40602010251t2c5d8acdt85f2d85af5ef9f89@mail.gmail.com>
2006-02-01 10:59           ` [PATCH 2/2] " Thomas Renninger
2006-02-01  1:47 ` 2.6.16-rc1-mm4: ALSA oops at remove_proc_entry Alexey Dobriyan
2006-02-01  1:47 ` Alexey Dobriyan
2006-02-01  2:23 ` 2.6.16-rc1-mm4 Yasunori Goto
2006-02-01  2:30   ` 2.6.16-rc1-mm4 Andrew Morton
2006-02-01  4:38 ` 2.6.16-rc1-mm4 Kurt Wall
2006-02-01  4:40   ` 2.6.16-rc1-mm4 Andrew Morton
2006-02-01  4:57     ` 2.6.16-rc1-mm4 Kurt Wall
2006-02-01  5:16       ` 2.6.16-rc1-mm4 Kurt Wall
2006-02-01  9:34     ` 2.6.16-rc1-mm4 Russell King
2006-02-01  9:53       ` 2.6.16-rc1-mm4 Andrew Morton
2006-02-02 22:28 ` 2.6.16-rc1-mm4 J.A. Magallon
2006-02-02 22:47   ` 2.6.16-rc1-mm4 Andrew Morton

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=200602011138.38065.trenn@suse.de \
    --to=trenn@suse.de \
    --cc=akpm@osdl.org \
    --cc=avuton@gmail.com \
    --cc=davej@redhat.com \
    --cc=linux-kernel@vger.kernel.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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.