Loading...
1/* SPDX-License-Identifier: GPL-2.0-only */
2/*
3 * Copyright (C) 2016 Linaro
4 * Viresh Kumar <viresh.kumar@linaro.org>
5 */
6
7#ifndef __CPUFREQ_DT_H__
8#define __CPUFREQ_DT_H__
9
10#include <linux/types.h>
11
12struct cpufreq_policy;
13
14struct cpufreq_dt_platform_data {
15 bool have_governor_per_policy;
16
17 unsigned int (*get_intermediate)(struct cpufreq_policy *policy,
18 unsigned int index);
19 int (*target_intermediate)(struct cpufreq_policy *policy,
20 unsigned int index);
21 int (*suspend)(struct cpufreq_policy *policy);
22 int (*resume)(struct cpufreq_policy *policy);
23};
24
25#endif /* __CPUFREQ_DT_H__ */
1/*
2 * Copyright (C) 2016 Linaro
3 * Viresh Kumar <viresh.kumar@linaro.org>
4 *
5 * This program is free software; you can redistribute it and/or modify
6 * it under the terms of the GNU General Public License version 2 as
7 * published by the Free Software Foundation.
8 */
9
10#ifndef __CPUFREQ_DT_H__
11#define __CPUFREQ_DT_H__
12
13#include <linux/types.h>
14
15struct cpufreq_dt_platform_data {
16 bool have_governor_per_policy;
17};
18
19#endif /* __CPUFREQ_DT_H__ */