gpu: nvgpu: convert disable_syncpoints into a bool

The disable_syncpoints debugfs knob allows the user to disable syncpt
support at runtime. This knob was incorrectly defined as a u32. Convert
it into a boolean variable.

JIRA NVGPU-3873

Change-Id: If1cfe07fa7b795c0d1b507395bd6e4fa547e3615
Signed-off-by: Adeel Raza <araza@nvidia.com>
Reviewed-on: https://git-master.nvidia.com/r/2262193
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com>
Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>
This commit is contained in:
Adeel Raza
2019-12-13 15:13:02 -08:00
committed by Alex Waterman
parent f121724cce
commit 28514b49fb
2 changed files with 2 additions and 2 deletions

View File

@@ -789,7 +789,7 @@ struct gk20a {
bool aggressive_sync_destroy; bool aggressive_sync_destroy;
/** Debugfs knob for forcing syncpt support off in runtime. */ /** Debugfs knob for forcing syncpt support off in runtime. */
u32 disable_syncpoints; bool disable_syncpoints;
/** Is LS PMU supported? */ /** Is LS PMU supported? */
bool support_ls_pmu; bool support_ls_pmu;

View File

@@ -362,7 +362,7 @@ void gk20a_debug_init(struct gk20a *g, const char *debugfs_symlink)
debugfs_create_u32("ch_wdt_init_limit_ms", S_IRUGO|S_IWUSR, debugfs_create_u32("ch_wdt_init_limit_ms", S_IRUGO|S_IWUSR,
l->debugfs, &g->ch_wdt_init_limit_ms); l->debugfs, &g->ch_wdt_init_limit_ms);
debugfs_create_u32("disable_syncpoints", S_IRUGO, debugfs_create_bool("disable_syncpoints", S_IRUGO,
l->debugfs, &g->disable_syncpoints); l->debugfs, &g->disable_syncpoints);
/* New debug logging API. */ /* New debug logging API. */