diff options
author | Russell King <rmk+kernel@arm.linux.org.uk> | 2009-12-12 17:47:40 +0300 |
---|---|---|
committer | Russell King <rmk+kernel@arm.linux.org.uk> | 2009-12-13 19:33:19 +0300 |
commit | 0d782dc430d94dc36b47cb11c2e33ecb1bb38234 (patch) | |
tree | d9718e6c1aefdf943c6ad16ceaae25f692f40d3f /arch/arm/mach-footbridge/common.c | |
parent | 002939729c7c8f6448e89e9e86c8c5bf6f0c77d3 (diff) | |
download | linux-0d782dc430d94dc36b47cb11c2e33ecb1bb38234.tar.xz |
ARM: VFP: fix vfp thread init bug and document vfp notifier entry conditions
When the VFP notifier is called for flush_thread(), we may be
preemptible, meaning we might migrate to another CPU, which means
referencing the current CPU number without some form of locking is
invalid, and can cause data corruption.
For the most cases, this isn't a problem since atomic notifiers are run
under rcu lock, which for most configurations results in preemption
being disabled - except when the preemptable tree-based rcu
implementation is selected.
Let's make it safe anyway.
Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
Diffstat (limited to 'arch/arm/mach-footbridge/common.c')
0 files changed, 0 insertions, 0 deletions