| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
| |
ok visa@
|
|
|
|
| |
Problem noticed by krw
|
|
|
|
|
|
|
|
|
| |
could be running inside a driver that will be force-detached, or due
to tsleep end up disrupting the softstate/hardstate contract. At
suspend time, quisce all these callbacks by waiting for completion.
This issue has never been observed for real, but may be implicated in
suspend/resume failures.
ok kettenis guenther mlarkin
|
|
|
|
|
|
|
| |
have any direct symbols used. Tested for indirect use by compiling
amd64/i386/sparc64 kernels.
ok tedu@ deraadt@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
interrupt context to a taskq running in a thread. however, there
is a concern that if we do that then we allow accidental use of
sleeping APIs in this work, which will make it harder to move the
work back to interrupts in the future.
guenther and kettenis came up with the idea of marking a proc with
CANTSLEEP which the sleep paths can check and panic on.
this builds on that so you create taskqs that run with CANTSLEEP
set except when they need to sleep for more tasks to run.
the taskq_create api is changed to take a flags argument so users
can specify CANTSLEEP. MPSAFE is also passed via this flags field
now. this means archs that defined IPL_MPSAFE to 0 can now create
mpsafe taskqs too.
lots of discussion at s2k15
ok guenther@ miod@ mpi@ tedu@ pelikan@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
when workqs were introduced, we provided a second argument so you
could pass a thing and some context to work on it in. there were
very few things that took advantage of the second argument, so when
i introduced pools i suggested removing it. since tasks were meant
to replace workqs, it was requested that we keep the second argument
to make porting from workqs to tasks easier.
now that workqs are gone, i had a look at the use of the second
argument again and found only one good use of it (vdsp(4) on sparc64
if you're interested) and a tiny handful of questionable uses. the
vast majority of tasks only used a single argument. i have since
modified all tasks that used two args to only use one, so now we
can remove the second argument.
so this is a mechanical change. all tasks only passed NULL as their
second argument, so we can just remove it.
ok krw@
|
| |
|
|
|
|
|
|
|
| |
falsely triggered the added panic. revert the panic for now while a
better solution is being worked on
as reported by Bjorn Ketelaars on misc@ via jsing@
|
|
|
|
|
|
| |
later on
ok deraadt@
|
| |
|
|
|
|
| |
ok mpi@ kspillner@
|
|
|
|
| |
after discussions with beck deraadt kettenis.
|
|
|
|
| |
with input from and ok kettenis, deraadt
|
|
|
|
|
|
| |
whack the locking and task cancellation.
sensor updates tested locally, and by mpi@ on ugold(4). ok mpi@
|
| |
|
|
|
|
|
|
|
| |
by returning ENXIO instead of ENOENT, to essentially indicate hotplug
sensor that has gone away. Accessing beyond the end of the sensordev
list still returns ENOENT, so that you can see there are no further devices.
ok kettenis oga
|
|
|
|
| |
ok dlg@
|
|
|
|
|
|
|
| |
Really just the low-hanging fruit of (hopefully) forthcoming timeout
conversions.
ok art@, krw@
|
| |
|
|
|
|
|
|
|
|
|
| |
kernel thread of its own. the api has changed (which will be fixed in the
manpage shortly) so all the users of sensor tasks that i can find have
been fixed too.
noone tested, so its going in to force people to run with it.
"put it in" deraadt@
|
|
|
|
| |
deref in sensor_task_work(); found by krw, dlg should talk to him
|
|
|
|
|
|
|
| |
apologies to art for abusing timeouts so badly. apologies to tedu for
making his head hurt.
tested by and ok tedu@
|
|
|
|
|
|
| |
of new fields in the future is less disruptive. This is done similar
to how struct proc is handled for ps(1). ok jmc (man page changes)
tested fkr simon, and more suggestions from millert
|
|
|
|
| |
Constantine A. Murenin
|
|
|
|
|
|
|
|
| |
to have to wait its timeout before the first run, which led to some
weird values or states being visible after boot, but before the first
update.
for jolan@
|
|
|
|
| |
ok henning
|
|
|
|
|
|
| |
affects way more than just hotplug messages. remove DV_SENSOR and use
DV_DULL for the moment. proper solution coming.
discussed with deraadt mk jason
|
| |
|
|
|
|
|
|
| |
sensors on attach/detach. hotplugd changes following in a minute.
ok henning.
|
| |
|
| |
|
|
|
|
|
|
| |
it in sensors.h.
from Constantine A. Murenin
|
|
|
|
|
|
|
|
|
|
| |
locating and finding the correct sensor to spit out. instead provide a
a sensor_get function that wraps up the access to the vars. theyre now
safe inside kern_sensors.c.
theres also a touch of whitespace tweaking
ok grange@
|
|
|
|
|
|
|
| |
sensor_add()/sensor_del() so that sensors can be attached
and detached dynamicaly.
ok kettenis@ deraadt@ dlg@
|
|
|
|
|
|
|
|
|
| |
collisions with local variable names someone might make. this has bitten
me twice now and caused me to lose about 4 hours scratching my head when
nsensors just magically corrupts and gets bigger. at least my ram isnt
screwed.
ok marco@
|
|
|
|
| |
mostly ok otto@ (ive since fixed the chunk he was worried about)
|
|
|
|
|
|
|
|
| |
the first element before iterating through the rest of them. stylistic
guidance from angela pascoe.
mark all tasks using the same argument as not running anymore, rather than
just the first one we bump into.
|
|
|
|
|
| |
hairy at the moment, but its going into the tree so it can be worked on
and used.
|
|
tested on GENERIC and RAMDISK_CD to see if the small_kernel stuff stays
happy
|