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 1/2] Re: 2.6.16-rc1-mm4
Date: Wed, 1 Feb 2006 11:36:04 +0100 [thread overview]
Message-ID: <200602011136.05381.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.
The driver seem not to initialize policy->cur in it's init function?
The 0 div probably comes from cpufreq_scale() called in time_cpufreq_notifier()
in kernel/arch/i386/timers/timer_tsc.c
This patch checks in update_policy() whether 0 is set as current freq:
(Be careful, Dave adjusted my original patch to mm, this one is on top of my
original one, so it might not patch cleanly on what Dave finally put in, but it should...)
Maybe it's easier if I submit the old one again with these lines added?
compile tested ...
_________________________________________________
Check whether driver init did not initialize current freq
signed-off-by: Thomas Renninger <trenn@suse.de>
Index: linux-2.6.16-rc1-mm3/drivers/cpufreq/cpufreq.c
===================================================================
--- linux-2.6.16-rc1-mm3.orig/drivers/cpufreq/cpufreq.c
+++ linux-2.6.16-rc1-mm3/drivers/cpufreq/cpufreq.c
@@ -1435,8 +1435,14 @@ int cpufreq_update_policy(unsigned int c
*/
if (cpufreq_driver->get){
policy.cur = cpufreq_driver->get(cpu);
- if (data->cur != policy.cur)
- cpufreq_out_of_sync(cpu, data->cur, policy.cur);
+ if (!data->cur){
+ dprintk("Driver did not initialize current freq");
+ data->cur = policy.cur;
+ }
+ else{
+ if (data->cur != policy.cur)
+ cpufreq_out_of_sync(cpu, data->cur, policy.cur);
+ }
}
ret = __cpufreq_set_policy(data, &policy);
next prev parent reply other threads:[~2006-02-01 10:36 UTC|newest]
Thread overview: 51+ 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 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 ` Thomas Renninger [this message]
2006-02-01 10:38 ` [PATCH 2/2] 2.6.16-rc1-mm4 Thomas Renninger
[not found] ` <3aa654a40602010251t2c5d8acdt85f2d85af5ef9f89@mail.gmail.com>
2006-02-01 10:59 ` Thomas Renninger
2006-02-01 1:47 ` 2.6.16-rc1-mm4: ALSA oops at remove_proc_entry 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=200602011136.05381.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox