diff options
author | Linus Torvalds <torvalds@linux-foundation.org> | 2010-03-14 14:15:45 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2010-03-14 14:15:45 -0400 |
commit | bca14dd14f3b0c5e3e2d1d314679f85b67871365 (patch) | |
tree | e2da281ecf99e9ea009c71cea947440d2b06afed | |
parent | 02ca6c407e0d43e6de5d646d26d87fc2eaa7a98b (diff) | |
parent | 2aa2b50dd62b5d0675bd7453fbeb5732dc2d7866 (diff) |
Merge branch 'core-fixes-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/linux-2.6-tip
* 'core-fixes-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/linux-2.6-tip:
x86/mce: Fix build bug with CONFIG_PROVE_LOCKING=y && CONFIG_X86_MCE_INTEL=y
-rw-r--r-- | arch/x86/kernel/cpu/mcheck/mce.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/arch/x86/kernel/cpu/mcheck/mce.c b/arch/x86/kernel/cpu/mcheck/mce.c index bd58de4d7a29..3ab9c886b613 100644 --- a/arch/x86/kernel/cpu/mcheck/mce.c +++ b/arch/x86/kernel/cpu/mcheck/mce.c | |||
@@ -46,6 +46,8 @@ | |||
46 | 46 | ||
47 | #include "mce-internal.h" | 47 | #include "mce-internal.h" |
48 | 48 | ||
49 | static DEFINE_MUTEX(mce_read_mutex); | ||
50 | |||
49 | #define rcu_dereference_check_mce(p) \ | 51 | #define rcu_dereference_check_mce(p) \ |
50 | rcu_dereference_check((p), \ | 52 | rcu_dereference_check((p), \ |
51 | rcu_read_lock_sched_held() || \ | 53 | rcu_read_lock_sched_held() || \ |
@@ -1490,8 +1492,6 @@ static void collect_tscs(void *data) | |||
1490 | rdtscll(cpu_tsc[smp_processor_id()]); | 1492 | rdtscll(cpu_tsc[smp_processor_id()]); |
1491 | } | 1493 | } |
1492 | 1494 | ||
1493 | static DEFINE_MUTEX(mce_read_mutex); | ||
1494 | |||
1495 | static ssize_t mce_read(struct file *filp, char __user *ubuf, size_t usize, | 1495 | static ssize_t mce_read(struct file *filp, char __user *ubuf, size_t usize, |
1496 | loff_t *off) | 1496 | loff_t *off) |
1497 | { | 1497 | { |