HomeFreeBSD

Switch gpioths(4) from using a callout to a taskqueue for periodic polling

Description

Switch gpioths(4) from using a callout to a taskqueue for periodic polling
of the sensor hardware. Part of the polling process involves signalling
the chip then waiting 20 milliseconds. This was being done with DELAY(),
which is a pretty rude thing to do in a callout. Now a taskqueue_thread
task is scheduled to do the polling, and because sleeping is allowed in
the task context, pause_sbt() replaces DELAY() for the 20ms wait.

Details

Provenance
ianAuthored on
Parents
rS355564: vi.1: Fix a typo
Branches
Unknown
Tags
Unknown