aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/util/trace-event-scripting.c
diff options
context:
space:
mode:
authorWill Deacon <[email protected]>2012-05-11 17:42:37 +0100
committerRussell King <[email protected]>2012-05-12 14:37:59 +0100
commit998de4acb2ba188d20768d1065658377a2e7d29b (patch)
treeb1c21f8cd96a6eb7cbce7e810eac65febf17982d /tools/perf/util/trace-event-scripting.c
parentfde165b2a29673aabf18ceff14dea1f1cfb0daad (diff)
ARM: 7417/1: vfp: ensure preemption is disabled when enabling VFP access
The vfp_enable function enables access to the VFP co-processor register space (cp10 and cp11) on the current CPU and must be called with preemption disabled. Unfortunately, the vfp_init late initcall does not disable preemption and can lead to an oops during boot if thread migration occurs at the wrong time and we end up attempting to access the FPSID on a CPU with VFP access disabled. This patch fixes the initcall to call vfp_enable from a non-preemptible context on each CPU and adds a BUG_ON(preemptible) to ensure that any similar problems are easily spotted in the future. Cc: [email protected] Reported-by: Hyungwoo Yang <[email protected]> Signed-off-by: Hyungwoo Yang <[email protected]> Signed-off-by: Will Deacon <[email protected]> Signed-off-by: Russell King <[email protected]>
Diffstat (limited to 'tools/perf/util/trace-event-scripting.c')
0 files changed, 0 insertions, 0 deletions