lkml.org 
[lkml]   [1998]   [Sep]   [17]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
Subjectapm broken - again (2.1.122) + FIX

On one sunny day, somebody disabled APM+SMP, causing kernel oopses everytime
I try to switch of my machine (using apm). The stated reason was (I believe),
that APM does not work with SMP. But fact is:

- APM poweroff works fine here when APM+SMP is enabled
- APM poweroff causes an oops with the current apm.c

I "fixed" it by commenting out the first "return;" in apm_bios.c, send a bug
report to the kernel list, and forgot about it.

Now, it wasn't fixed, but 2.1.122 reintroduced it (not really, 2.1.122 just
renamed apm_bios.c)

So, again, what purpose has this code in apm.c:

#ifdef __SMP__
if (smp_num_cpus > 1) {
printk(KERN_NOTICE "APM disabled: APM is not SMP safe.\n");
return;
}
#endif

with it, I get oopses, without it everything works fine. Yes, I'm not
enabling any powersaving, I just want an automatic power-off, and the
current code is (and was) buggy.

-----==- |
----==-- _ |
---==---(_)__ __ ____ __ Marc Lehmann +--
--==---/ / _ \/ // /\ \/ / pcg@goof.com |e|
-=====/_/_//_/\_,_/ /_/\_\ --+
The choice of a GNU generation |
|

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu
Please read the FAQ at http://www.tux.org/lkml/

\
 
 \ /
  Last update: 2005-03-22 13:44    [W:0.035 / U:0.584 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site