mirror of
git://nv-tegra.nvidia.com/linux-nvgpu.git
synced 2025-12-22 17:36:20 +03:00
gpu: nvgpu: linux: move os ops to a common file
Currently only cde uses nvgpu_os_linux_ops to set up linux specific ops. Move nvgpu_os_linux_ops of a gpu to a common file so that those can be reused for other os ops of that gpu. JIRA NVGPU-603 Change-Id: Icf1ff275d3832229137f730fe8183b8015e82673 Signed-off-by: Nitin Kumbhar <nkumbhar@nvidia.com> Reviewed-on: https://git-master.nvidia.com/r/1797902 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
18e060227d
commit
94eebcdd8c
@@ -56,6 +56,7 @@
|
||||
#include "ioctl.h"
|
||||
|
||||
#include "os_linux.h"
|
||||
#include "os_ops.h"
|
||||
#include "ctxsw_trace.h"
|
||||
#include "driver_common.h"
|
||||
#include "channel.h"
|
||||
@@ -183,17 +184,6 @@ static int gk20a_restore_registers(struct gk20a *g)
|
||||
return 0;
|
||||
}
|
||||
|
||||
static int nvgpu_init_os_linux_ops(struct nvgpu_os_linux *l)
|
||||
{
|
||||
int err = 0;
|
||||
|
||||
#ifdef CONFIG_NVGPU_SUPPORT_CDE
|
||||
err = nvgpu_cde_init_ops(l);
|
||||
#endif
|
||||
|
||||
return err;
|
||||
}
|
||||
|
||||
int nvgpu_finalize_poweron_linux(struct nvgpu_os_linux *l)
|
||||
{
|
||||
struct gk20a *g = &l->g;
|
||||
|
||||
Reference in New Issue
Block a user