diff options
author | Konsta Holtta <kholtta@nvidia.com> | 2017-07-03 06:49:27 -0400 |
---|---|---|
committer | mobile promotions <svcmobile_promotions@nvidia.com> | 2017-07-07 13:35:30 -0400 |
commit | d0a77f558ef8d101059c6238abd46a9a97191564 (patch) | |
tree | 76488cf718482c20ff81685f48737eaf63a9b3e7 /drivers/gpu/nvgpu/gm20b | |
parent | 858a204362a385f076b057b6196fd89f7edb839b (diff) |
gpu: nvgpu: use u32 for timeout API duration
A negative value in the timeout duration does not have any special uses,
so change the duration type to u32 (from just int). Delete some
unnecessary typecasts to int.
Also change MAX_SCHEDULE_TIMEOUT to ULONG_MAX in default gr idle timeout
because the value is in milliseconds instead of scheduling units and to
drop unnecessary Linux dependency.
Change-Id: I5cf6febd4f1cb00c46fe159603436a9ac3b003ac
Signed-off-by: Konsta Holtta <kholtta@nvidia.com>
Reviewed-on: https://git-master/r/1512565
Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com>
Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>
Diffstat (limited to 'drivers/gpu/nvgpu/gm20b')
-rw-r--r-- | drivers/gpu/nvgpu/gm20b/pmu_gm20b.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/gpu/nvgpu/gm20b/pmu_gm20b.c b/drivers/gpu/nvgpu/gm20b/pmu_gm20b.c index ee55c8ef..0f99c67e 100644 --- a/drivers/gpu/nvgpu/gm20b/pmu_gm20b.c +++ b/drivers/gpu/nvgpu/gm20b/pmu_gm20b.c | |||
@@ -184,7 +184,7 @@ static int pmu_gm20b_ctx_wait_lsf_ready(struct gk20a *g, u32 timeout_ms, | |||
184 | gk20a_dbg_fn(""); | 184 | gk20a_dbg_fn(""); |
185 | reg = gk20a_readl(g, gr_fecs_ctxsw_mailbox_r(0)); | 185 | reg = gk20a_readl(g, gr_fecs_ctxsw_mailbox_r(0)); |
186 | 186 | ||
187 | nvgpu_timeout_init(g, &timeout, (int)timeout_ms, NVGPU_TIMER_CPU_TIMER); | 187 | nvgpu_timeout_init(g, &timeout, timeout_ms, NVGPU_TIMER_CPU_TIMER); |
188 | 188 | ||
189 | do { | 189 | do { |
190 | reg = gk20a_readl(g, gr_fecs_ctxsw_mailbox_r(0)); | 190 | reg = gk20a_readl(g, gr_fecs_ctxsw_mailbox_r(0)); |