diff options
author | Robert Richter <robert.richter@amd.com> | 2011-06-01 15:31:44 +0200 |
---|---|---|
committer | Robert Richter <robert.richter@amd.com> | 2011-06-15 14:31:29 +0200 |
commit | 8fe7e94eb71430cf63a742f3c19739d82a662758 (patch) | |
tree | db624be62586a59c5f3954bf7c8c9188fa58d819 /arch/x86/Kconfig | |
parent | 2c53b436a30867eb6b47dd7bab23ba638d1fb0d2 (diff) |
oprofile, x86: Fix race in nmi handler while starting counters
In some rare cases, nmis are generated immediately after the nmi
handler of the cpu was started. This causes the counter not to be
enabled. Before enabling the nmi handlers we need to set variable
ctr_running first and make sure its value is written to memory.
Also, the patch makes all existing barriers a memory barrier instead
of a compiler barrier only.
Reported-by: Suravee Suthikulpanit <suravee.suthikulpanit@amd.com>
Cc: <stable@kernel.org> # .35+
Signed-off-by: Robert Richter <robert.richter@amd.com>
Diffstat (limited to 'arch/x86/Kconfig')
0 files changed, 0 insertions, 0 deletions