summaryrefslogtreecommitdiff
path: root/common
diff options
context:
space:
mode:
authorSidath Senanayake <sidaths@google.com>2021-03-16 17:19:23 +0000
committerTreeHugger Robot <treehugger-gerrit@google.com>2021-03-17 23:49:33 +0000
commit3a321370378ed16fcb6061b08d3134bef93cb64b (patch)
treea7be7cb6fc7ea833023fae6608452145d3f5ddd4 /common
parent112e13705cac8935a040cf04c7ce9771d80425f9 (diff)
downloadgpu-3a321370378ed16fcb6061b08d3134bef93cb64b.tar.gz
common: Update priority control manager interface
Bug: 182907924 Signed-off-by: Sidath Senanayake <sidaths@google.com> Change-Id: I576eaea53be2a46236de07776416fa6bf36a319e
Diffstat (limited to 'common')
-rw-r--r--common/include/linux/priority_control_manager.h17
1 files changed, 16 insertions, 1 deletions
diff --git a/common/include/linux/priority_control_manager.h b/common/include/linux/priority_control_manager.h
index 3d4122d..ce36a1e 100644
--- a/common/include/linux/priority_control_manager.h
+++ b/common/include/linux/priority_control_manager.h
@@ -73,12 +73,27 @@ struct priority_control_manager_ops {
* Return: The priority that would actually be given, could be lower than requested_priority
*/
int (*pcm_scheduler_priority_check)(
- struct priority_control_manager_device *mgm_dev,
+ struct priority_control_manager_device *pcm_dev,
struct task_struct *task, int requested_priority);
};
+/**
+ * struct priority_control_manager_device - Device structure for a priority
+ * control manager
+ *
+ * @ops - Callbacks associated with this device
+ * @data - Pointer to device private data
+ *
+ * In order for a systems integrator to implement custom restrictions on which
+ * processes can use certain GPU scheduling priorities, they must provide a
+ * platform-specific driver module which implements this interface.
+ *
+ * This structure should be registered with the platform device using
+ * platform_set_drvdata().
+ */
struct priority_control_manager_device {
struct priority_control_manager_ops ops;
+ void *data;
};
#endif /* _PRIORITY_CONTROL_MANAGER_H_ */