Skip to contentSkip to conversation

ACPI: compilation fixes

PATCH Pavel Machek 3 participants 3 messages Aug 1, 2002 1 message not in the archive ACPI

lore
Share & tools
lore
#0 lore raw

Hi!

2.5.29 will not compile for me without these, please apply.

Pavel

drivers/acpi/system.c +3 -2
@@ -256,7 +256,8 @@
 	acpi_status		status = AE_ERROR;
 	unsigned long		flags = 0;
 
-	save_flags(flags);
+	local_irq_save(flags);
+	local_irq_disable();
 	
 	switch (state)
 	{
@@ -270,7 +271,7 @@
 		do_suspend_lowlevel(0);
 		break;
 	}
-	restore_flags(flags);
+	local_irq_restore(flags);
 
 	return status;
 }
Signature · 8 lines
Worst form of spam? Adding advertisment signatures ala sourceforge.net.
What goes next? Inserting advertisment *into* email?


-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
#1 lore raw

drivers/acpi/system.c line 260

Quoted 3 lines · Pavel Machek
drivers/acpi/system.c +2 -1
-	save_flags(flags);
+	local_irq_save(flags);
+	local_irq_disable();

umm. local_irq_save disables interrupts:

#define local_irq_save(x) __asm__ __volatile__("pushfl ; popl %0 ; cli":"=
g" (x): /* no input */ :"memory")

i think you're confused with local_save_flags.

Signature · 1 line
Revolutions do not require corporate support.

A message that is not in the archive (sent off-list or not yet received): 20020801104053.GA137-I/[email protected]

#3 lore raw

drivers/acpi/system.c line 260

Quoted 3 lines · Pavel Machek
drivers/acpi/system.c +2 -1
-	save_flags(flags);
+	local_irq_save(flags);
+	local_irq_disable();

umm. local_irq_save disables interrupts:

#define local_irq_save(x) __asm__ __volatile__("pushfl ; popl %0 ; cli":"=
g" (x): /* no input */ :"memory")

i think you're confused with local_save_flags.

Signature · 7 lines
Revolutions do not require corporate support.


-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf