mirror of
git://nv-tegra.nvidia.com/linux-nvgpu.git
synced 2025-12-24 02:22:34 +03:00
gpu: nvgpu: isolate channel watchdog unit
Move the definition of struct nvgpu_channel_wdt to watchdog.c. Adjust users of it to access it via an unified interface instead of poking directly at the channel internals. Jira NVGPU-5494 Change-Id: Ie11826e6732a8b98e72c4f81dd06bd7e49848121 Signed-off-by: Konsta Hölttä <kholtta@nvidia.com> Reviewed-on: https://git-master.nvidia.com/r/c/linux-nvgpu/+/2345935 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
21e02878f4
commit
16fb7654a5
@@ -33,6 +33,7 @@
|
||||
#include <nvgpu/firmware.h>
|
||||
#include <nvgpu/os_sched.h>
|
||||
#include <nvgpu/channel.h>
|
||||
#include <nvgpu/watchdog.h>
|
||||
#include <nvgpu/runlist.h>
|
||||
#include <nvgpu/utils.h>
|
||||
#include <nvgpu/gk20a.h>
|
||||
@@ -1343,7 +1344,7 @@ static int gk20a_cde_load(struct gk20a_cde_ctx *cde_ctx)
|
||||
}
|
||||
|
||||
#ifdef CONFIG_NVGPU_CHANNEL_WDT
|
||||
ch->wdt.enabled = false;
|
||||
nvgpu_channel_wdt_disable(ch->wdt);
|
||||
#endif
|
||||
|
||||
/* bind the channel to the vm */
|
||||
|
||||
Reference in New Issue
Block a user