Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F177630716
D58859.1794892067.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Flag For Later
Award Token
Authored By
Unknown
Size
600 B
Referenced Files
None
Subscribers
None
D58859.1794892067.diff
View Options
diff --git a/sys/arm64/arm64/vfp.c b/sys/arm64/arm64/vfp.c
--- a/sys/arm64/arm64/vfp.c
+++ b/sys/arm64/arm64/vfp.c
@@ -679,8 +679,7 @@
KASSERT(td == curthread, ("%s: Called with non-current thread",
__func__));
-
- critical_enter();
+ CRITICAL_ASSERT(td);
cpu = PCPU_GET(cpuid);
curpcb = td->td_pcb;
@@ -728,8 +727,6 @@
PCPU_SET(fpcurthread, td);
curpcb->pcb_vfpcpu = cpu;
}
-
- critical_exit();
}
void
@@ -738,7 +735,9 @@
struct thread *td;
td = curthread;
+ critical_enter();
vfp_restore_state_common(td, td->td_pcb->pcb_fpflags);
+ critical_exit();
}
bool
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Tue, Nov 17, 5:07 AM (22 h, 25 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
36844305
Default Alt Text
D58859.1794892067.diff (600 B)
Attached To
Mode
D58859: arm64 vfp: eliminate nested critical sections
Attached
Detach File
Event Timeline