CVSROOT: /cvs Module name: src Changes by: o...@cvs.openbsd.org 2009/04/04 22:15:37
Modified files: sys/dev/pci/drm: drmP.h drm_irq.c i915_irq.c radeon_irq.c Log message: Rework the vblank subsystem so that instead of having various bits in the drm softc, we only have one pointer, with the rest in that struct. This is so that vblank-less drivers (yes, they exist) don't need to waste space on useless crud. While i'm reworking most of this code anyway, accept that on openbsd all of the #defined atomic functions are not atomic other than set and clear bit. Also, realise that the vb_lock is held whenever we manipulate these counts anyway. With those two facts in mind just remove the atomic_blah() and just use ++ and --.