diff options
author | Sivaram Nair <sivaramn@nvidia.com> | 2013-02-18 23:09:52 +0200 |
---|---|---|
committer | Dan Willemsen <dwillemsen@nvidia.com> | 2013-09-14 13:00:21 -0700 |
commit | 9314bdb223bf64b1920dab72ef37bd40c40874c9 (patch) | |
tree | 6a6a2d0a5d0ade17a5cda2502b4697cd067b7d5f /include/linux/edp.h | |
parent | 4cd3321cfc202c3a5537d1d465e7f87e476d7293 (diff) |
EDP: adding debugfs support
This patch adds debufs support for the EDP manager and clients. Client
drivers may use the client object's dentry pointer to add their own
debugfs entries.
Change-Id: I193afe7175d3e1407d5dee2341ac55a8972a3ace
Signed-off-by: Sivaram Nair <sivaramn@nvidia.com>
(cherry picked from commit 35cde2ba740b2227ff375b66b76c3696e4aa4d49)
Reviewed-on: http://git-master/r/203828
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Juha Tukkinen <jtukkinen@nvidia.com>
Diffstat (limited to 'include/linux/edp.h')
-rw-r--r-- | include/linux/edp.h | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/include/linux/edp.h b/include/linux/edp.h index 7a7207256372..1fba4bc2bd1a 100644 --- a/include/linux/edp.h +++ b/include/linux/edp.h @@ -41,6 +41,11 @@ struct edp_manager { /* governor internal */ void *gov_data; + +#ifdef CONFIG_DEBUG_FS + /* public */ + struct dentry *dentry; +#endif }; /* @@ -85,6 +90,11 @@ struct edp_client { /* governor internal */ unsigned int gwt; struct list_head glnk; + +#ifdef CONFIG_DEBUG_FS + /* public */ + struct dentry *dentry; +#endif }; struct edp_governor { @@ -104,6 +114,8 @@ struct edp_governor { }; #ifdef CONFIG_EDP_FRAMEWORK +extern struct dentry *edp_debugfs_dir; + extern int edp_register_manager(struct edp_manager *mgr); extern int edp_unregister_manager(struct edp_manager *mgr); extern struct edp_manager *edp_get_manager(const char *name); |