diff options
author | Jesse Hall <jessehall@google.com> | 2021-06-07 21:57:32 -0700 |
---|---|---|
committer | Jesse Hall <jessehall@google.com> | 2021-06-07 21:57:32 -0700 |
commit | b4f227d1905ae5b96e7af36a6145765204d3d19a (patch) | |
tree | 76519bfb3e20a6f9035943abb3b163794931f66e /mali_pixel/memory_group_manager.c | |
parent | 2a59ad85558be15c11a7c076c373031272c53433 (diff) | |
download | gpu-b4f227d1905ae5b96e7af36a6145765204d3d19a.tar.gz |
mali_pixel: allow building without pixel stats
Bug: 190389925
Signed-off-by: Jesse Hall <jessehall@google.com>
Change-Id: I212815b4170900d62cd06ac517777ba36e01ae43
Diffstat (limited to 'mali_pixel/memory_group_manager.c')
-rw-r--r-- | mali_pixel/memory_group_manager.c | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/mali_pixel/memory_group_manager.c b/mali_pixel/memory_group_manager.c index 378fc7a..a4efc1a 100644 --- a/mali_pixel/memory_group_manager.c +++ b/mali_pixel/memory_group_manager.c @@ -256,6 +256,8 @@ static int mgm_debugfs_init(struct mgm_groups *mgm_data) /* * Pixel Stats sysfs */ +#ifdef CONFIG_MALI_PIXEL_STATS + extern struct kobject *pixel_stat_gpu_kobj; #define MGM_ATTR_RO(_name) \ @@ -340,6 +342,18 @@ static void mgm_sysfs_term(struct mgm_groups *data) kobject_put(&data->kobj); } +#else +static int mgm_sysfs_init(struct mgm_groups *data) +{ + return 0; +} + +static void mgm_sysfs_term(struct mgm_groups *data) +{} + +#endif /* CONFIG_MALI_PIXEL_STATS */ + + #define ORDER_SMALL_PAGE 0 #define ORDER_LARGE_PAGE 9 static void update_size(struct memory_group_manager_device *mgm_dev, int |