summaryrefslogtreecommitdiffstats
path: root/sound/oss/waveartist.h
diff options
context:
space:
mode:
authorRobert Richter <robert.richter@amd.com>2011-06-01 15:31:44 +0200
committerRobert Richter <robert.richter@amd.com>2011-06-15 14:31:29 +0200
commit8fe7e94eb71430cf63a742f3c19739d82a662758 (patch)
treedb624be62586a59c5f3954bf7c8c9188fa58d819 /sound/oss/waveartist.h
parent2c53b436a30867eb6b47dd7bab23ba638d1fb0d2 (diff)
downloadlinux-8fe7e94eb71430cf63a742f3c19739d82a662758.tar.gz
linux-8fe7e94eb71430cf63a742f3c19739d82a662758.tar.bz2
linux-8fe7e94eb71430cf63a742f3c19739d82a662758.zip
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 'sound/oss/waveartist.h')
0 files changed, 0 insertions, 0 deletions