Skip to content

Commit

Permalink
x86: Convert set_atomicity_lock to raw_spinlock
Browse files Browse the repository at this point in the history
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
  • Loading branch information
Thomas Gleixner committed Feb 16, 2010
1 parent 942fa3b commit 40d6753
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions arch/x86/kernel/cpu/mtrr/generic.c
Original file line number Diff line number Diff line change
Expand Up @@ -570,7 +570,7 @@ static unsigned long set_mtrr_state(void)


static unsigned long cr4;
static DEFINE_SPINLOCK(set_atomicity_lock);
static DEFINE_RAW_SPINLOCK(set_atomicity_lock);

/*
* Since we are disabling the cache don't allow any interrupts,
Expand All @@ -590,7 +590,7 @@ static void prepare_set(void) __acquires(set_atomicity_lock)
* changes to the way the kernel boots
*/

spin_lock(&set_atomicity_lock);
raw_spin_lock(&set_atomicity_lock);

/* Enter the no-fill (CD=1, NW=0) cache mode and flush caches. */
cr0 = read_cr0() | X86_CR0_CD;
Expand Down Expand Up @@ -627,7 +627,7 @@ static void post_set(void) __releases(set_atomicity_lock)
/* Restore value of CR4 */
if (cpu_has_pge)
write_cr4(cr4);
spin_unlock(&set_atomicity_lock);
raw_spin_unlock(&set_atomicity_lock);
}

static void generic_set_all(void)
Expand Down

0 comments on commit 40d6753

Please sign in to comment.