]> git.baikalelectronics.ru Git - kernel.git/commit
drm/i915: Update PM interrupts before updating the freq
authorDeepak S <deepak.s@intel.com>
Fri, 10 Jul 2015 13:01:40 +0000 (18:31 +0530)
committerDaniel Vetter <daniel.vetter@ffwll.ch>
Mon, 13 Jul 2015 09:27:21 +0000 (11:27 +0200)
commitd078d1b7abaedb554c4a1c10ca9fa40f0e2f11ce
tree45dcfc4848f18bb166a93a9ce920e3a48cfb6325
parent09a7a9b5c84d8d5597834c7dde46dacbe84a6954
drm/i915: Update PM interrupts before updating the freq

Currently we update the freq before masking the interrupts, which can
allow new interrupts to occur before the frequency has changed. These
extra interrupts might waste some cpu cycles. This patch corrects
this by masking interrupts prior to updating the frequency.

Note from Chris:
"Well it won't waste CPU cycles as the interrupt is also masked by the
threshold limits, but there should be no harm at all in reordering the
patch so, and it does make a certain amount of sense."

Signed-off-by: Deepak S <deepak.s@intel.com>
Signed-off-by: Praveen Paneri <praveen.paneri@intel.com>
Reviewed-by: Chris Wilson <chris@chris-wilson.co.uk>
[danvet: Add note from Chris.]
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
drivers/gpu/drm/i915/intel_pm.c