drm/nouveau/clk: allow non-blocking for nouveau_clock_astate()
authorVince Hsu <vinceh@nvidia.com>
Mon, 22 Dec 2014 09:11:37 +0000 (17:11 +0800)
committerBen Skeggs <bskeggs@redhat.com>
Thu, 22 Jan 2015 02:15:02 +0000 (12:15 +1000)
commitf8a8546194d7794c309d2d8114f457f4f921afad
treeb460bd39de0a80d22a49b3f199760bcbb07f485a
parent9509ff759fb550194003507d143110388e3c8857
drm/nouveau/clk: allow non-blocking for nouveau_clock_astate()

There might be some callers of nouveau_clock_astate(), and they are from
inetrrupt context. So we must ensure that this function can be atomic in
that condition. This patch adds one parameter which is subsequently passed
to nouveau_pstate_calc(). Therefore we can choose whether we want to wait
for the pstate work's completion or not.

Signed-off-by: Vince Hsu <vinceh@nvidia.com>
Signed-off-by: Ben Skeggs <bskeggs@redhat.com>
drivers/gpu/drm/nouveau/core/include/subdev/clock.h
drivers/gpu/drm/nouveau/core/subdev/clock/base.c
This page took 0.025028 seconds and 5 git commands to generate.