All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] fix panic in powernow_k8_verify on MP but PSB systems
@ 2004-05-26 20:33 Dominik Brodowski
  2004-05-26 21:29 ` Dave Jones
  0 siblings, 1 reply; 2+ messages in thread
From: Dominik Brodowski @ 2004-05-26 20:33 UTC (permalink / raw)
  To: davej, cpufreq, paul.devriendt

Instead of -ENODEV; powernow_k8_cpu_init returns 0 if it's running on a MP
system but PSB BIOS is tried... this causes a panic in
powernow_k8_verify, as can be seen at
http://forums.gentoo.org/viewtopic.php?t=177423

Signed-off-by: Dominik Brodowski <linux@brodo.de>

--- linux-2.6.7-rc1/arch/i386/kernel/cpu/cpufreq/powernow-k8.c.original	2004-05-24 15:19:13.000000000 +0200
+++ linux-2.6.7-rc1/arch/i386/kernel/cpu/cpufreq/powernow-k8.c	2004-05-26 22:30:43.404982920 +0200
@@ -945,7 +945,7 @@
 		if ((num_online_cpus() != 1) || (num_possible_cpus() != 1)) {
 			printk(KERN_INFO PFX "MP systems not supported by PSB BIOS structure\n");
 			kfree(data);
-			return 0;
+			return -ENODEV;
 		}
 		rc = find_psb_table(data);
 		if (rc) {

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2004-05-26 21:29 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-05-26 20:33 [PATCH] fix panic in powernow_k8_verify on MP but PSB systems Dominik Brodowski
2004-05-26 21:29 ` Dave Jones

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.