mirror of
git://nv-tegra.nvidia.com/linux-nvgpu.git
synced 2025-12-22 17:36:20 +03:00
gpu: nvgpu: Put debugfs dependencies inside #ifdef
Put all debugfs dependencies inside #ifdef CONFIG_DEBUG_FS. This includes some functions in allocators that were used only for debugging. Remove include of linux/debugfs.h on files that do not deal with debugfs. linux/debugfs.h implicitly included linux/fs.h, which we relied on. Add explicit include of linux/fs.h for all files where this is the case. Change-Id: I16feffae6b0e3a2edf366075cdc01ade86be06f9 Signed-off-by: Terje Bergstrom <tbergstrom@nvidia.com> Reviewed-on: http://git-master/r/1467897 Reviewed-by: Automatic_Commit_Validation_User GVS: Gerrit_Virtual_Submit
This commit is contained in:
committed by
mobile promotions
parent
b88c9ad793
commit
b3e1ce04b9
@@ -615,9 +615,9 @@ static int gk20a_pm_unrailgate(struct device *dev)
|
||||
{
|
||||
struct gk20a_platform *platform = dev_get_drvdata(dev);
|
||||
int ret = 0;
|
||||
#ifdef CONFIG_DEBUG_FS
|
||||
struct gk20a *g = get_gk20a(dev);
|
||||
|
||||
#ifdef CONFIG_DEBUG_FS
|
||||
g->pstats.last_rail_ungate_start = jiffies;
|
||||
if (g->pstats.railgating_cycle_count >= 1)
|
||||
g->pstats.total_rail_gate_time_ms =
|
||||
@@ -974,8 +974,10 @@ static int __exit gk20a_remove(struct platform_device *pdev)
|
||||
|
||||
gk20a_user_deinit(dev, &nvgpu_class);
|
||||
|
||||
#ifdef CONFIG_DEBUG_FS
|
||||
debugfs_remove_recursive(platform->debugfs);
|
||||
debugfs_remove_recursive(platform->debugfs_alias);
|
||||
#endif
|
||||
|
||||
gk20a_remove_sysfs(dev);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user