Shorten the times IRQs are disabled in throttling. During calculations no disabling is necessary. Signed-off-by: Dominik Brodowski --- drivers/acpi/processor_throttling.c | 8 ++++---- 1 files changed, 4 insertions(+), 4 deletions(-) diff -ruN linux-original/drivers/acpi/processor_throttling.c linux/drivers/acpi/processor_throttling.c --- linux-original/drivers/acpi/processor_throttling.c 2004-11-27 16:04:41.707320512 +0100 +++ linux/drivers/acpi/processor_throttling.c 2004-11-27 16:29:36.190124592 +0100 @@ -69,12 +69,12 @@ pr->throttling.state = 0; - local_irq_disable(); - duty_mask = pr->throttling.state_count - 1; duty_mask <<= pr->throttling.duty_offset; + local_irq_disable(); + value = inl(pr->throttling.address); /* @@ -123,8 +123,6 @@ if (state == pr->throttling.state) return_VALUE(0); - local_irq_disable(); - /* * Calculate the duty_value and duty_mask. */ @@ -140,6 +138,8 @@ duty_mask = ~duty_mask; } + local_irq_disable(); + /* * Disable throttling by writing a 0 to bit 4. Note that we must * turn it off before you can change the duty_value.