1 /* SPDX-License-Identifier: GPL-2.0 */ 1 /* SPDX-License-Identifier: GPL-2.0 */ 2 /* 2 /* 3 * Copyright (C) 2018 Linaro Ltd 3 * Copyright (C) 2018 Linaro Ltd 4 * 4 * 5 * Author: Daniel Lezcano <daniel.lezcano@lina 5 * Author: Daniel Lezcano <daniel.lezcano@linaro.org> 6 * 6 * 7 */ 7 */ 8 #ifndef __IDLE_INJECT_H__ 8 #ifndef __IDLE_INJECT_H__ 9 #define __IDLE_INJECT_H__ 9 #define __IDLE_INJECT_H__ 10 10 11 /* private idle injection device structure */ 11 /* private idle injection device structure */ 12 struct idle_inject_device; 12 struct idle_inject_device; 13 13 14 struct idle_inject_device *idle_inject_registe 14 struct idle_inject_device *idle_inject_register(struct cpumask *cpumask); 15 15 16 struct idle_inject_device *idle_inject_registe << 17 << 18 << 19 void idle_inject_unregister(struct idle_inject 16 void idle_inject_unregister(struct idle_inject_device *ii_dev); 20 17 21 int idle_inject_start(struct idle_inject_devic 18 int idle_inject_start(struct idle_inject_device *ii_dev); 22 19 23 void idle_inject_stop(struct idle_inject_devic 20 void idle_inject_stop(struct idle_inject_device *ii_dev); 24 21 25 void idle_inject_set_duration(struct idle_inje 22 void idle_inject_set_duration(struct idle_inject_device *ii_dev, 26 unsigned int 23 unsigned int run_duration_us, 27 unsigned int 24 unsigned int idle_duration_us); 28 25 29 void idle_inject_get_duration(struct idle_inje 26 void idle_inject_get_duration(struct idle_inject_device *ii_dev, 30 unsigned int 27 unsigned int *run_duration_us, 31 unsigned int 28 unsigned int *idle_duration_us); 32 29 33 void idle_inject_set_latency(struct idle_injec 30 void idle_inject_set_latency(struct idle_inject_device *ii_dev, 34 unsigned int late !! 31 unsigned int latency_ns); 35 32 36 #endif /* __IDLE_INJECT_H__ */ 33 #endif /* __IDLE_INJECT_H__ */ 37 34
Linux® is a registered trademark of Linus Torvalds in the United States and other countries.
TOMOYO® is a registered trademark of NTT DATA CORPORATION.