summaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorDeepak Nibade <dnibade@nvidia.com>2016-05-04 02:26:24 -0400
committerTerje Bergstrom <tbergstrom@nvidia.com>2016-05-04 14:18:28 -0400
commit8beea96fad15724bc1fb7302668077617c9dbcee (patch)
treeb92d23f7e050feac6dc29ee4a8909a80103d654d /include
parentb9cb2481adb24e079757b18ace8e214b6617b7ce (diff)
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>
Diffstat (limited to 'include')
-rw-r--r--include/linux/gk20a.h8
1 files changed, 2 insertions, 6 deletions
diff --git a/include/linux/gk20a.h b/include/linux/gk20a.h
index da2e1f22..ec81faf4 100644
--- a/include/linux/gk20a.h
+++ b/include/linux/gk20a.h
@@ -24,16 +24,12 @@
24struct channel_gk20a; 24struct channel_gk20a;
25struct platform_device; 25struct platform_device;
26 26
27#ifdef CONFIG_GK20A 27#if defined(CONFIG_GK20A) && defined(CONFIG_PM)
28int nvhost_vpr_info_fetch(void);
29int gk20a_do_idle(void); 28int gk20a_do_idle(void);
30int gk20a_do_unidle(void); 29int gk20a_do_unidle(void);
31#else 30#else
32static inline int nvhost_vpr_info_fetch(void)
33{
34 return -ENOSYS;
35}
36static inline int gk20a_do_idle(void) { return -ENOSYS; } 31static inline int gk20a_do_idle(void) { return -ENOSYS; }
37static inline int gk20a_do_unidle(void) { return -ENOSYS; } 32static inline int gk20a_do_unidle(void) { return -ENOSYS; }
38#endif 33#endif
34
39#endif 35#endif