lkml.org 
[lkml]   [2002]   [Aug]   [19]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [PATCH] APM fix for 2.4.20pre1
Hi!

> @@ -897,10 +889,11 @@
> */
> #ifdef CONFIG_SMP
> /* Some bioses don't like being called from CPU != 0 */
> - while (cpu_number_map(smp_processor_id()) != 0) {
> - kernel_thread(apm_magic, NULL,
> - CLONE_FS | CLONE_FILES | CLONE_SIGHAND | SIGCHLD);
> + if (cpu_number_map(smp_processor_id()) != 0) {
> + current->cpus_allowed = 1;
> schedule();
> + if (unlikely(cpu_number_map(smp_processor_id()) != 0))
> + BUG();

BUG_ON()?
Pavel
--
Philips Velo 1: 1"x4"x8", 300gram, 60, 12MB, 40bogomips, linux, mutt,
details at http://atrey.karlin.mff.cuni.cz/~pavel/velo/index.html.

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

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