drm/panel-edp: Add STA 116QHD024002
[drm/drm-misc.git] / include / linux / idle_inject.h
bloba85d5dd40f7260d184e9b546bc652811973939e2
1 /* SPDX-License-Identifier: GPL-2.0 */
2 /*
3 * Copyright (C) 2018 Linaro Ltd
5 * Author: Daniel Lezcano <daniel.lezcano@linaro.org>
7 */
8 #ifndef __IDLE_INJECT_H__
9 #define __IDLE_INJECT_H__
11 /* private idle injection device structure */
12 struct idle_inject_device;
14 struct idle_inject_device *idle_inject_register(struct cpumask *cpumask);
16 struct idle_inject_device *idle_inject_register_full(struct cpumask *cpumask,
17 bool (*update)(void));
19 void idle_inject_unregister(struct idle_inject_device *ii_dev);
21 int idle_inject_start(struct idle_inject_device *ii_dev);
23 void idle_inject_stop(struct idle_inject_device *ii_dev);
25 void idle_inject_set_duration(struct idle_inject_device *ii_dev,
26 unsigned int run_duration_us,
27 unsigned int idle_duration_us);
29 void idle_inject_get_duration(struct idle_inject_device *ii_dev,
30 unsigned int *run_duration_us,
31 unsigned int *idle_duration_us);
33 void idle_inject_set_latency(struct idle_inject_device *ii_dev,
34 unsigned int latency_us);
36 #endif /* __IDLE_INJECT_H__ */