summaryrefslogtreecommitdiffstats
path: root/sys/dev/sio/sio.c
diff options
context:
space:
mode:
authorimp <imp@FreeBSD.org>2008-12-07 18:32:09 +0000
committerimp <imp@FreeBSD.org>2008-12-07 18:32:09 +0000
commit09990939a46c3539c1bb818b4bff57a158233de6 (patch)
tree83326ac75581ce5edea7b4da7722aa9ceb81c9d8 /sys/dev/sio/sio.c
parent868630039f3335e1079202ef1795b0391612c7e2 (diff)
downloadFreeBSD-src-09990939a46c3539c1bb818b4bff57a158233de6.zip
FreeBSD-src-09990939a46c3539c1bb818b4bff57a158233de6.tar.gz
Use atomic_add_int rather than a simple ++ to ensure no cache races if
the power interrupt and init code waiting for the interrupt are running on different CPUs. I haven't seen this make any real difference, but I've also had some reports of odd behavior I can't otherwise explain. It is an infrequent operation, and certainly wouldn't hurt.
Diffstat (limited to 'sys/dev/sio/sio.c')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud