cpufreq: governor: Move abstract gov_attr_set code to seperate file

Move abstract code related to struct gov_attr_set to a separate (new)
file so it can be shared with (future) goverernors that won't share
more code with "ondemand" and "conservative".

No intentional functional changes.

Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Acked-by: Viresh Kumar <viresh.kumar@linaro.org>
Цей коміт міститься в:
Rafael J. Wysocki
2016-03-22 02:49:15 +01:00
джерело 0dd3c1d678
коміт 2d0c58ad60
5 змінених файлів з 95 додано та 82 видалено

Переглянути файл

@@ -48,6 +48,12 @@ struct gov_attr_set {
int usage_count;
};
extern const struct sysfs_ops governor_sysfs_ops;
void gov_attr_set_init(struct gov_attr_set *attr_set, struct list_head *list_node);
void gov_attr_set_get(struct gov_attr_set *attr_set, struct list_head *list_node);
unsigned int gov_attr_set_put(struct gov_attr_set *attr_set, struct list_head *list_node);
/*
* Abbreviations:
* dbs: used as a shortform for demand based switching It helps to keep variable