From fa42a073434dfb543315163cbaffdc8750635b2e Mon Sep 17 00:00:00 2001 From: shashank singh Date: Thu, 13 Feb 2020 17:20:24 +0530 Subject: [PATCH] gpu: nvgpu: add missing pmu gops in doxygen gops for pmu_early_init is skipped in doxygen documentation by putting it under DOXYGEN_SHOULD_SKIP_THIS. But it is needed in safety so move it outside of the condition. Change-Id: I7bab8a3617dd7b022a4b135b2db5893499458e75 Signed-off-by: shashank singh Reviewed-on: https://git-master.nvidia.com/r/c/linux-nvgpu/+/2294117 Tested-by: mobile promotions Reviewed-by: mobile promotions --- drivers/gpu/nvgpu/include/nvgpu/gops_pmu.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/drivers/gpu/nvgpu/include/nvgpu/gops_pmu.h b/drivers/gpu/nvgpu/include/nvgpu/gops_pmu.h index b4bb571e4..a285dde53 100644 --- a/drivers/gpu/nvgpu/include/nvgpu/gops_pmu.h +++ b/drivers/gpu/nvgpu/include/nvgpu/gops_pmu.h @@ -1,5 +1,5 @@ /* - * Copyright (c) 2019, NVIDIA CORPORATION. All rights reserved. + * Copyright (c) 2019-2020, NVIDIA CORPORATION. All rights reserved. * * Permission is hereby granted, free of charge, to any person obtaining a * copy of this software and associated documentation files (the "Software"), @@ -80,8 +80,6 @@ struct gops_pmu { */ void (*pmu_isr)(struct gk20a *g); - /** @cond DOXYGEN_SHOULD_SKIP_THIS */ - /** * @brief PMU early initialization to allocate memory for PMU unit, * set PMU Engine h/w properties and set supporting data structs. @@ -101,6 +99,8 @@ struct gops_pmu { */ int (*pmu_early_init)(struct gk20a *g); + /** @cond DOXYGEN_SHOULD_SKIP_THIS */ + #ifdef CONFIG_NVGPU_LS_PMU int (*pmu_rtos_init)(struct gk20a *g); int (*pmu_destroy)(struct gk20a *g, struct nvgpu_pmu *pmu);