swh:1:snp:c3bf2749e3476071fa748f67b0ffa2fdc5fe49d9
Raw File
Tip revision: 15ade5d2e7775667cf191cf2f94327a4889f8b9d authored by Linus Torvalds on 08 April 2019, 00:09:59 UTC
Linux 5.1-rc4
Tip revision: 15ade5d
idle_inject.h
/* SPDX-License-Identifier: GPL-2.0 */
/*
 * Copyright (C) 2018 Linaro Ltd
 *
 * Author: Daniel Lezcano <daniel.lezcano@linaro.org>
 *
 */
#ifndef __IDLE_INJECT_H__
#define __IDLE_INJECT_H__

/* private idle injection device structure */
struct idle_inject_device;

struct idle_inject_device *idle_inject_register(struct cpumask *cpumask);

void idle_inject_unregister(struct idle_inject_device *ii_dev);

int idle_inject_start(struct idle_inject_device *ii_dev);

void idle_inject_stop(struct idle_inject_device *ii_dev);

void idle_inject_set_duration(struct idle_inject_device *ii_dev,
				 unsigned int run_duration_ms,
				 unsigned int idle_duration_ms);

void idle_inject_get_duration(struct idle_inject_device *ii_dev,
				 unsigned int *run_duration_ms,
				 unsigned int *idle_duration_ms);
#endif /* __IDLE_INJECT_H__ */
back to top