commit | b599c64db761fb2155cdb804a4e21136c11edffa | [log] [tgz] |
---|---|---|
author | Andi Kleen <andi@firstfloor.org> | Fri Nov 19 13:16:22 2010 +0100 |
committer | Andi Kleen <ak@linux.intel.com> | Fri Nov 19 13:16:22 2010 +0100 |
tree | a7e38f0984934ee6c8965ae16fe9dcbd7fef8f11 | |
parent | 5f1e459ff6985cffa29bd9d930212d1b4c808b19 [diff] |
MCE: Move MCE work initialization to before enabling machine checks Move the initialization of the mce work variable to before machine checks are enabled in the CPU. Also add a memory barrier to make sure the compiler doesn't move this. This closes a (very unlikely and small) race window where a machine check could happen before the work variable was initialized. Signed-off-by: Andi Kleen <ak@linux.intel.com>