lkml.org 
[lkml]   [1998]   [Mar]   [19]   [last100]   RSS Feed
Views: [more markup]  [less markup]  [headers]  [forward] 
 
Messages in this thread
/
DateThu, 19 Mar 1998 00:20:20 +0100
FromKurt Garloff <>
SubjectRe: SMP users: please test this patch
> --- /tmp/linux-2.1.90/drivers/char/apm_bios.c	Wed Mar 11 15:10:39 1998
> +++ linux/drivers/char/apm_bios.c	Wed Mar 18 12:51:15 1998
> @@ -1159,8 +1159,10 @@
>  	static struct proc_dir_entry *ent;
> 
>  #ifdef __SMP__
> -	printk(KERN_NOTICE "APM disabled: APM is not SMP safe.\n");
> -	return;
> +	if (smp_num_cpus > 1) {
> +		printk(KERN_NOTICE "Advanced Power Managment disabled: APM is not multiprocessor safe.\n");
> +	  	return;
> +	}
>  #endif
>  	if (apm_bios_info.version == 0) {
>  		printk(KERN_INFO "APM BIOS not found.\n");

I'm using this for a long time now. (I posted a similar patch 2 months ago.)
Most of the time, I was using UP kernels, but sometimes I was testing SMP.
No problems with APM, so far.

-- 
Kurt Garloff, Dortmund 
<K.Garloff@ping.de>
PGP key on http://student.physik.uni-dortmund.de/homepages/garloff

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu

\
 
 \ /
  Last update: 2005-03-22 12:41    [W:0.102 / U:0.220 seconds]
©2003-2008 Jasper Spaans