diff options
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/gpu/nvgpu/gm20b/ltc_gm20b.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/drivers/gpu/nvgpu/gm20b/ltc_gm20b.c b/drivers/gpu/nvgpu/gm20b/ltc_gm20b.c index 9090be23..03307c01 100644 --- a/drivers/gpu/nvgpu/gm20b/ltc_gm20b.c +++ b/drivers/gpu/nvgpu/gm20b/ltc_gm20b.c | |||
@@ -286,15 +286,16 @@ u32 gm20b_ltc_cbc_fix_config(struct gk20a *g, int base) | |||
286 | void gm20b_flush_ltc(struct gk20a *g) | 286 | void gm20b_flush_ltc(struct gk20a *g) |
287 | { | 287 | { |
288 | u32 op_pending; | 288 | u32 op_pending; |
289 | unsigned long now, timeout; | 289 | unsigned long timeout; |
290 | 290 | ||
291 | #define __timeout_init() \ | 291 | #define __timeout_init() \ |
292 | do { \ | 292 | do { \ |
293 | now = jiffies; timeout = now + HZ; \ | 293 | timeout = jiffies + HZ; \ |
294 | } while (0) | 294 | } while (0) |
295 | #define __timeout_check() \ | 295 | #define __timeout_check() \ |
296 | do { \ | 296 | do { \ |
297 | if (tegra_platform_is_silicon() && time_after(now, timeout)) { \ | 297 | if (tegra_platform_is_silicon() && \ |
298 | time_after(jiffies, timeout)) { \ | ||
298 | gk20a_err(dev_from_gk20a(g), "L2 flush timeout!"); \ | 299 | gk20a_err(dev_from_gk20a(g), "L2 flush timeout!"); \ |
299 | break; \ | 300 | break; \ |
300 | } \ | 301 | } \ |