diff options
-rw-r--r-- | arch/i386/kernel/cpu/mtrr/generic.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/arch/i386/kernel/cpu/mtrr/generic.c b/arch/i386/kernel/cpu/mtrr/generic.c index 169ac8e0db68..0b61eed8bbd8 100644 --- a/arch/i386/kernel/cpu/mtrr/generic.c +++ b/arch/i386/kernel/cpu/mtrr/generic.c | |||
@@ -243,7 +243,7 @@ static DEFINE_SPINLOCK(set_atomicity_lock); | |||
243 | * has been called. | 243 | * has been called. |
244 | */ | 244 | */ |
245 | 245 | ||
246 | static void prepare_set(void) | 246 | static void prepare_set(void) __acquires(set_atomicity_lock) |
247 | { | 247 | { |
248 | unsigned long cr0; | 248 | unsigned long cr0; |
249 | 249 | ||
@@ -274,7 +274,7 @@ static void prepare_set(void) | |||
274 | mtrr_wrmsr(MTRRdefType_MSR, deftype_lo & 0xf300UL, deftype_hi); | 274 | mtrr_wrmsr(MTRRdefType_MSR, deftype_lo & 0xf300UL, deftype_hi); |
275 | } | 275 | } |
276 | 276 | ||
277 | static void post_set(void) | 277 | static void post_set(void) __releases(set_atomicity_lock) |
278 | { | 278 | { |
279 | /* Flush TLBs (no need to flush caches - they are disabled) */ | 279 | /* Flush TLBs (no need to flush caches - they are disabled) */ |
280 | __flush_tlb(); | 280 | __flush_tlb(); |