Skip to contentSkip to conversation

2.5.30 ACPI: fixing compilation

PATCH Pavel Machek 2 participants 4 messages Aug 4, 2002 ACPI

lore
Share & tools
lore
#0 lore raw

Hi!

This fixes compilation and is actually right since we can't get SMP machine suspending, anyway. We'll have to bring all other CPUs down for suspend in future. Please apply,
Pavel

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

Hi,

Quoted 2 lines · Pavel Machek

This fixes compilation and is actually right since we can't get SMP machine suspending, anyway.

Did we make sure that we won't suspend on smp? I can't see where that happens.

Thunder

Signature · 1 line
.-../../-./..-/-..- .-./..-/.-.././.../.-.-.-
#2 lore raw

Hi!

Quoted 5 lines
Quoted 2 lines

This fixes compilation and is actually right since we can't get SMP machine suspending, anyway.

Did we make sure that we won't suspend on smp? I can't see where that happens.

It was broken before so I left it broken. Second CPU will probably kill it fast enough not to corrupt data too badly.

Does anyone have S3-capable SMP system?

SWSUSP refuses to work on SMP.
Pavel

Signature · 2 lines
Casualities in World Trade Center: ~3k dead inside the building,
cryptography in U.S.A. and free speech in Czech Republic.
#3 lore raw

Hi,

Quoted 2 lines · Pavel Machek

It was broken before so I left it broken. Second CPU will probably kill it fast enough not to corrupt data too badly.

I meant, depending the code on !CONFIG_SMP.

Thunder

Signature · 1 line
.-../../-./..-/-..- .-./..-/.-.././.../.-.-.-