|
5 | 5 | * Copyright (C) 2011 Samsung Electronics |
6 | 6 | * MyungJoo Ham <myungjoo.ham@samsung.com> |
7 | 7 | * |
8 | | - * This header is for devfreq governors in drivers/devfreq/ |
| 8 | + * This header is for devfreq governors |
9 | 9 | */ |
10 | 10 |
|
11 | | -#ifndef _GOVERNOR_H |
12 | | -#define _GOVERNOR_H |
| 11 | +#ifndef __LINUX_DEVFREQ_DEVFREQ_H__ |
| 12 | +#define __LINUX_DEVFREQ_DEVFREQ_H__ |
13 | 13 |
|
14 | 14 | #include <linux/devfreq.h> |
15 | 15 |
|
|
47 | 47 | #define DEVFREQ_GOV_ATTR_POLLING_INTERVAL BIT(0) |
48 | 48 | #define DEVFREQ_GOV_ATTR_TIMER BIT(1) |
49 | 49 |
|
50 | | -/** |
51 | | - * struct devfreq_cpu_data - Hold the per-cpu data |
52 | | - * @node: list node |
53 | | - * @dev: reference to cpu device. |
54 | | - * @first_cpu: the cpumask of the first cpu of a policy. |
55 | | - * @opp_table: reference to cpu opp table. |
56 | | - * @cur_freq: the current frequency of the cpu. |
57 | | - * @min_freq: the min frequency of the cpu. |
58 | | - * @max_freq: the max frequency of the cpu. |
59 | | - * |
60 | | - * This structure stores the required cpu_data of a cpu. |
61 | | - * This is auto-populated by the governor. |
62 | | - */ |
63 | | -struct devfreq_cpu_data { |
64 | | - struct list_head node; |
65 | | - |
66 | | - struct device *dev; |
67 | | - unsigned int first_cpu; |
68 | | - |
69 | | - struct opp_table *opp_table; |
70 | | - unsigned int cur_freq; |
71 | | - unsigned int min_freq; |
72 | | - unsigned int max_freq; |
73 | | -}; |
74 | | - |
75 | 50 | /** |
76 | 51 | * struct devfreq_governor - Devfreq policy governor |
77 | 52 | * @node: list node - contains registered devfreq governors |
@@ -124,4 +99,4 @@ static inline int devfreq_update_stats(struct devfreq *df) |
124 | 99 |
|
125 | 100 | return df->profile->get_dev_status(df->dev.parent, &df->last_status); |
126 | 101 | } |
127 | | -#endif /* _GOVERNOR_H */ |
| 102 | +#endif /* __LINUX_DEVFREQ_DEVFREQ_H__ */ |
0 commit comments