Commit 62dbc210 authored by Hisashi Hifumi's avatar Hisashi Hifumi Committed by Andi Kleen

[PATCH] i386: replace spin_lock_irqsave with spin_lock

IRQ is already disabled through local_irq_disable().  So
spin_lock_irqsave() can be replaced with spin_lock().
Signed-off-by: default avatarHisashi Hifumi <hifumi.hisashi@oss.ntt.co.jp>
Signed-off-by: default avatarAndi Kleen <ak@suse.de>
Cc: Andi Kleen <ak@suse.de>
Signed-off-by: default avatarAndrew Morton <akpm@linux-foundation.org>
parent e8a72ffa
...@@ -198,8 +198,6 @@ static unsigned char jump_to_bios [] = ...@@ -198,8 +198,6 @@ static unsigned char jump_to_bios [] =
*/ */
void machine_real_restart(unsigned char *code, int length) void machine_real_restart(unsigned char *code, int length)
{ {
unsigned long flags;
local_irq_disable(); local_irq_disable();
/* Write zero to CMOS register number 0x0f, which the BIOS POST /* Write zero to CMOS register number 0x0f, which the BIOS POST
...@@ -212,9 +210,9 @@ void machine_real_restart(unsigned char *code, int length) ...@@ -212,9 +210,9 @@ void machine_real_restart(unsigned char *code, int length)
safe side. (Yes, CMOS_WRITE does outb_p's. - Paul G.) safe side. (Yes, CMOS_WRITE does outb_p's. - Paul G.)
*/ */
spin_lock_irqsave(&rtc_lock, flags); spin_lock(&rtc_lock);
CMOS_WRITE(0x00, 0x8f); CMOS_WRITE(0x00, 0x8f);
spin_unlock_irqrestore(&rtc_lock, flags); spin_unlock(&rtc_lock);
/* Remap the kernel at virtual address zero, as well as offset zero /* Remap the kernel at virtual address zero, as well as offset zero
from the kernel segment. This assumes the kernel segment starts at from the kernel segment. This assumes the kernel segment starts at
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment