summaryrefslogtreecommitdiff
path: root/include/linux
diff options
context:
space:
mode:
authorIlpo Järvinen <ilpo.jarvinen@linux.intel.com>2024-12-12 17:07:26 +0300
committerIlpo Järvinen <ilpo.jarvinen@linux.intel.com>2024-12-12 17:07:26 +0300
commit18131e9f1682bd6082ec6c194f8ed3243f0fc230 (patch)
tree8f6d7bac52881d71e67a7c7e831d90ac037fa615 /include/linux
parent3b6f9c6505a34450a4dd5d9bbbe5cfec4718adb2 (diff)
parent0056b0852c326cf21201661f68ab41002ae9a845 (diff)
downloadlinux-18131e9f1682bd6082ec6c194f8ed3243f0fc230.tar.xz
Merge branch 'platform-drivers-x86-platform-profile' into for-next
Diffstat (limited to 'include/linux')
-rw-r--r--include/linux/platform_profile.h9
1 files changed, 7 insertions, 2 deletions
diff --git a/include/linux/platform_profile.h b/include/linux/platform_profile.h
index f5492ed413f3..0682bb4c57e5 100644
--- a/include/linux/platform_profile.h
+++ b/include/linux/platform_profile.h
@@ -23,10 +23,15 @@ enum platform_profile_option {
PLATFORM_PROFILE_BALANCED,
PLATFORM_PROFILE_BALANCED_PERFORMANCE,
PLATFORM_PROFILE_PERFORMANCE,
+ PLATFORM_PROFILE_CUSTOM,
PLATFORM_PROFILE_LAST, /*must always be last */
};
struct platform_profile_handler {
+ const char *name;
+ struct device *dev;
+ struct device *class_dev;
+ int minor;
unsigned long choices[BITS_TO_LONGS(PLATFORM_PROFILE_LAST)];
int (*profile_get)(struct platform_profile_handler *pprof,
enum platform_profile_option *profile);
@@ -35,8 +40,8 @@ struct platform_profile_handler {
};
int platform_profile_register(struct platform_profile_handler *pprof);
-int platform_profile_remove(void);
+int platform_profile_remove(struct platform_profile_handler *pprof);
int platform_profile_cycle(void);
-void platform_profile_notify(void);
+void platform_profile_notify(struct platform_profile_handler *pprof);
#endif /*_PLATFORM_PROFILE_H_*/