diff options
author | Russell King <rmk+kernel@arm.linux.org.uk> | 2009-12-12 09:47:40 -0500 |
---|---|---|
committer | Russell King <rmk+kernel@arm.linux.org.uk> | 2009-12-13 11:33:19 -0500 |
commit | 0d782dc430d94dc36b47cb11c2e33ecb1bb38234 (patch) | |
tree | d9718e6c1aefdf943c6ad16ceaae25f692f40d3f /arch/arm/mach-ixp2000/include | |
parent | 002939729c7c8f6448e89e9e86c8c5bf6f0c77d3 (diff) |
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-ixp2000/include')
0 files changed, 0 insertions, 0 deletions