diff options
| author | ad <ad@NetBSD.org> | 2019-12-01 14:52:13 +0000 |
|---|---|---|
| committer | ad <ad@NetBSD.org> | 2019-12-01 14:52:13 +0000 |
| commit | 127d8dcb20106ef5e787aef30c1dfea9ce9aa55c (patch) | |
| tree | eaf953452d4c79f885828831eadb5e76115b3b0f /sys/dev/dm/dm_pdev.c | |
| parent | 6f2074f9e5e04514d97bc33ca10284087cc0b70e (diff) | |
Make cpu_intr_p() safe to use anywhere, i.e. outside assertions:
Don't call kpreempt_disable() / kpreempt_enable() to make sure we're not
preempted while using the value of curcpu(). Instead, observe the value of
l_ncsw before and after the check to see if we have been preempted. If
we have been preempted, then we need to retry the read.
Diffstat (limited to 'sys/dev/dm/dm_pdev.c')
0 files changed, 0 insertions, 0 deletions
