Re: BUG: scheduling while atomic: swapper/0/0x10000002

Previous thread: BUG: scheduling while atomic: swapper/0/0x10000002 by Piotr Hosowicz on Tuesday, August 10, 2010 - 6:12 am. (2 messages)

Next thread: [PATCH] char: mxser.c, tty->driver_data is not set, kernel 2.6.33.7 by Alexander on Tuesday, August 10, 2010 - 7:21 am. (3 messages)
From: Markus Trippelsdorf
Date: Tuesday, August 10, 2010 - 7:29 am

This bug already has two patches available to fix it:
 
http://lkml.org/lkml/2010/8/6/672
https://patchwork.kernel.org/patch/113092/

-- 
»A man who doesn't know he is in prison can never escape.«
William S. Burroughs
--

From: Sergey Senozhatsky
Date: Tuesday, August 10, 2010 - 8:13 am

Thanks.

	Sergey

From: Piotr Hosowicz
Date: Tuesday, August 10, 2010 - 8:19 am

None of them works for me. I do:

cat patch.txt | patch -p1

And get:

aapi205:/usr/src/linux# cat ../smp-bug.txt | patch -p1
patching file include/acpi/platform/aclinux.h
Hunk #1 FAILED at 152.
1 out of 1 hunk FAILED -- saving rejects to file 
include/acpi/platform/aclinux.h.rej

Help me please.

Regards,

Piotr Hosowicz

-- 
Zatrzymuje się samochód na sejmowym parkingu. Podchodzi do niego 
ochroniarz i mówi:
- Pan tu parkuje?! Tu Sejm ... Ministrowie, politycy, posłowiei ...
- Dzięki, włączę alarm.
NP: Peter Green Splinter Group - There's A River
NB: 2.6.35-git9
--

From: Sergey Senozhatsky
Date: Tuesday, August 10, 2010 - 8:35 am

Can we see your:
include/acpi/platform/aclinux.h(.rej)

?

(did you `git pull`?)


	Sergey
From: Piotr Hosowicz
Date: Tuesday, August 10, 2010 - 8:36 am

aapi205:/usr/src/linux# cat include/acpi/platform/aclinux.h.rej
--- include/acpi/platform/aclinux.h
+++ include/acpi/platform/aclinux.h
@@ -152,7 +152,7 @@
  #include <linux/hardirq.h>
  #define ACPI_PREEMPTION_POINT() \
         do { \
-               if (!in_atomic_preempt_off() && !irqs_disabled()) \
+               if (!in_atomic() && !irqs_disabled()) \
                         cond_resched(); \

No, I just downloaded bz2 patch from kernel.org.

Regards,

Piotr Hosowicz

-- 
Z cyklu "Uroki demokracji", czyli pytania i odpowiedzi w teledurniejach:
- W którym mieście europejskim powstała pierwsza opera?
- Sydney.
NP: Peter Green Splinter Group - Heart Of Stone
NB: 2.6.35-git9
--

Previous thread: BUG: scheduling while atomic: swapper/0/0x10000002 by Piotr Hosowicz on Tuesday, August 10, 2010 - 6:12 am. (2 messages)

Next thread: [PATCH] char: mxser.c, tty->driver_data is not set, kernel 2.6.33.7 by Alexander on Tuesday, August 10, 2010 - 7:21 am. (3 messages)