mirror of
git://nv-tegra.nvidia.com/linux-nvgpu.git
synced 2025-12-22 17:36:20 +03:00
gpu: nvgpu: add CONFIG_PM check for do_idle()
gk20a_do_idle()/gk20a_do_unidle() should be defined if both CONFIG_GK20A and CONFIG_PM are defined Also, remove unused API nvhost_vpr_info_fetch() Change-Id: I9c461bf1545b65074d8d20a274347ca306bf092a Signed-off-by: Deepak Nibade <dnibade@nvidia.com> Reviewed-on: http://git-master/r/1141055 Reviewed-by: Automatic_Commit_Validation_User Reviewed-by: Sri Krishna Chowdary <schowdary@nvidia.com> GVS: Gerrit_Virtual_Submit Reviewed-by: Terje Bergstrom <tbergstrom@nvidia.com>
This commit is contained in:
committed by
Terje Bergstrom
parent
b9cb2481ad
commit
8beea96fad
@@ -24,16 +24,12 @@
|
||||
struct channel_gk20a;
|
||||
struct platform_device;
|
||||
|
||||
#ifdef CONFIG_GK20A
|
||||
int nvhost_vpr_info_fetch(void);
|
||||
#if defined(CONFIG_GK20A) && defined(CONFIG_PM)
|
||||
int gk20a_do_idle(void);
|
||||
int gk20a_do_unidle(void);
|
||||
#else
|
||||
static inline int nvhost_vpr_info_fetch(void)
|
||||
{
|
||||
return -ENOSYS;
|
||||
}
|
||||
static inline int gk20a_do_idle(void) { return -ENOSYS; }
|
||||
static inline int gk20a_do_unidle(void) { return -ENOSYS; }
|
||||
#endif
|
||||
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user