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