mirror of
git://nv-tegra.nvidia.com/linux-nvgpu.git
synced 2025-12-24 10:34:43 +03:00
gpu: nvgpu: avoid channel wdt ifdefs
Implement empty stubs of the channel watchdog functions for when watchdog is disabled from build. Add some forward declarations that were missing. Now most call sites don't need #idefs for the build flag. Add error checks for the wdt alloc failure. Jira NVGPU-5494 Jira NVGPU-5493 Change-Id: I2d42e8ab4c5e045cd280b2e1f254396127bd154b Signed-off-by: Konsta Hölttä <kholtta@nvidia.com> Reviewed-on: https://git-master.nvidia.com/r/c/linux-nvgpu/+/2352050 Tested-by: mobile promotions <svcmobile_promotions@nvidia.com> Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com>
This commit is contained in:
committed by
Alex Waterman
parent
56f6646da1
commit
6cbc174fc2
@@ -1342,9 +1342,7 @@ static int gk20a_cde_load(struct gk20a_cde_ctx *cde_ctx)
|
||||
goto err_get_gk20a_channel;
|
||||
}
|
||||
|
||||
#ifdef CONFIG_NVGPU_CHANNEL_WDT
|
||||
nvgpu_channel_wdt_disable(ch->wdt);
|
||||
#endif
|
||||
|
||||
/* bind the channel to the vm */
|
||||
err = g->ops.mm.vm_bind_channel(g->mm.cde.vm, ch);
|
||||
|
||||
Reference in New Issue
Block a user