remove the second void * argument on tasks.
authordlg <dlg@openbsd.org>
Tue, 27 Jan 2015 03:17:35 +0000 (03:17 +0000)
committerdlg <dlg@openbsd.org>
Tue, 27 Jan 2015 03:17:35 +0000 (03:17 +0000)
commite419548092f59c20a140404818050eb2ab331a19
treeff250435e8b28c07c967073741c21d374241b774
parent6baf1f61387b41396c1071d52e33b2c92670e350
remove the second void * argument on tasks.

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@
52 files changed:
share/man/man9/task_add.9
sys/arch/sparc64/dev/vdsp.c
sys/crypto/crypto.c
sys/dev/ata/atascsi.c
sys/dev/audio.c
sys/dev/cardbus/cardslot.c
sys/dev/ic/mpi.c
sys/dev/ic/qla.c
sys/dev/ic/qlw.c
sys/dev/pci/arc.c
sys/dev/pci/drm/drm_crtc_helper.c
sys/dev/pci/drm/i915/i915_drv.c
sys/dev/pci/drm/i915/i915_drv.h
sys/dev/pci/drm/i915/i915_gem.c
sys/dev/pci/drm/i915/i915_irq.c
sys/dev/pci/drm/i915/intel_display.c
sys/dev/pci/drm/i915/intel_dp.c
sys/dev/pci/drm/i915/intel_pm.c
sys/dev/pci/drm/radeon/r600_audio.c
sys/dev/pci/drm/radeon/radeon.h
sys/dev/pci/drm/radeon/radeon_display.c
sys/dev/pci/drm/radeon/radeon_fb.c
sys/dev/pci/drm/radeon/radeon_irq_kms.c
sys/dev/pci/drm/radeon/radeon_kms.c
sys/dev/pci/drm/radeon/radeon_pm.c
sys/dev/pci/drm/ttm/ttm_bo.c
sys/dev/pci/drm/ttm/ttm_memory.c
sys/dev/pci/if_bnx.c
sys/dev/pci/if_iwi.c
sys/dev/pci/if_iwn.c
sys/dev/pci/if_wpi.c
sys/dev/pci/mpii.c
sys/dev/pci/ppb.c
sys/dev/pci/qle.c
sys/dev/pci/viomb.c
sys/dev/pci/vmwpvs.c
sys/dev/rasops/rasops.c
sys/dev/rnd.c
sys/dev/softraid.c
sys/dev/softraidvar.h
sys/dev/vscsi.c
sys/kern/kern_sensors.c
sys/kern/kern_task.c
sys/kern/subr_disk.c
sys/net/if.c
sys/net/if_spppsubr.c
sys/net80211/ieee80211_input.c
sys/netinet6/nd6.c
sys/netinet6/nd6_rtr.c
sys/scsi/scsi_base.c
sys/sys/task.h
sys/uvm/uvm_swap.c