mirror of
git://nv-tegra.nvidia.com/linux-nvgpu.git
synced 2025-12-24 10:34:43 +03:00
gpu: nvgpu: gr_priv header include cleanup
Add more apis in gr_utils for accessing variables within gr struct. This helps to avoid including gr_priv.h outside gr files and derefencing gr struct. Jira NVGPU-3218 Change-Id: I6f24cc302f10aa1da14a981d80c400a027c9a115 Signed-off-by: Vinod G <vinodg@nvidia.com> Reviewed-on: https://git-master.nvidia.com/r/2115930 Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com> Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>
This commit is contained in:
committed by
mobile promotions
parent
e615e8f0ff
commit
5c60645cfa
@@ -769,13 +769,3 @@ void nvgpu_gr_sw_ready(struct gk20a *g, bool enable)
|
||||
{
|
||||
g->gr->sw_ready = enable;
|
||||
}
|
||||
|
||||
void nvgpu_gr_override_ecc_val(struct gk20a *g, u32 ecc_val)
|
||||
{
|
||||
g->gr->fecs_feature_override_ecc_val = ecc_val;
|
||||
}
|
||||
|
||||
struct nvgpu_gr_config *nvgpu_gr_get_config_ptr(struct gk20a *g)
|
||||
{
|
||||
return g->gr->config;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user