summaryrefslogtreecommitdiffstats
path: root/lib/libssl/src/e_os2.h
diff options
context:
space:
mode:
authoruebayasi <uebayasi@openbsd.org>2014-07-11 10:53:07 +0000
committeruebayasi <uebayasi@openbsd.org>2014-07-11 10:53:07 +0000
commit65f535b7fa77bbec89e3f3bc91362d65d807077e (patch)
treea13555854a8cf5afbe0a7177fbe09523470eeb8b /lib/libssl/src/e_os2.h
parentTrim down comments to those that are actually helpful for reading the file, (diff)
downloadwireguard-openbsd-65f535b7fa77bbec89e3f3bc91362d65d807077e.tar.xz
wireguard-openbsd-65f535b7fa77bbec89e3f3bc91362d65d807077e.zip
CPU_BUSY_CYCLE(): A new MI statement for busy loop power reduction
The new CPU_BUSY_CYCLE() may be put in a busy loop body so that CPU can reduce power consumption, as Linux's cpu_relax() and FreeBSD's cpu_spinwait(). To start minimally, use PAUSE on i386/amd64 and empty on others. The name is chosen following the existing cpu_idle_*() functions. Naming and API may be polished later. OK kettenis@
Diffstat (limited to 'lib/libssl/src/e_os2.h')
0 files changed, 0 insertions, 0 deletions