mirror of
git://nv-tegra.nvidia.com/linux-nvgpu.git
synced 2025-12-24 02:22:34 +03:00
gpu: nvgpu: Move debugfs fields to os_linux
Move all Linux specific debugfs dentry fields to struct nvgpu_os_linux. JIRA NVGPU-62 Change-Id: I615620005f5d042943dd2e478c1629bcc912c550 Signed-off-by: Terje Bergstrom <tbergstrom@nvidia.com> Reviewed-on: https://git-master.nvidia.com/r/1528263 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
b8efd9d045
commit
972c42fddf
@@ -13,18 +13,17 @@
|
||||
*/
|
||||
|
||||
#include "debug_gr.h"
|
||||
#include "gk20a/platform_gk20a.h"
|
||||
#include "os_linux.h"
|
||||
|
||||
#include <linux/debugfs.h>
|
||||
|
||||
int gr_gk20a_debugfs_init(struct gk20a *g)
|
||||
{
|
||||
struct gk20a_platform *platform = dev_get_drvdata(dev_from_gk20a(g));
|
||||
struct nvgpu_os_linux *l = nvgpu_os_linux_from_gk20a(g);
|
||||
|
||||
g->debugfs_gr_default_attrib_cb_size =
|
||||
l->debugfs_gr_default_attrib_cb_size =
|
||||
debugfs_create_u32("gr_default_attrib_cb_size",
|
||||
S_IRUGO|S_IWUSR, platform->debugfs,
|
||||
S_IRUGO|S_IWUSR, l->debugfs,
|
||||
&g->gr.attrib_cb_default_size);
|
||||
|
||||
return 0;
|
||||
|
||||
Reference in New Issue
Block a user