summaryrefslogtreecommitdiff
path: root/drivers/cpuquiet/cpuquiet.h
blob: fa61946ff119f6d64d080a09461b4856540af293 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
/*
 * Copyright (c) 2012 NVIDIA CORPORATION.  All rights reserved.
 *
 * This program is free software; you can redistribute it and/or modify
 * it under the terms of the GNU General Public License as published by
 * the Free Software Foundation; version 2 of the License.
 *
 * This program is distributed in the hope that it will be useful, but WITHOUT
 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
 * FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License for
 * more details.
 *
 * You should have received a copy of the GNU General Public License along
 * with this program; if not, write to the Free Software Foundation, Inc.,
 * 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
 *
 */

#ifndef __DRIVER_CPUQUIET_H
#define __DRIVER_CPUQUIET_H

#include <linux/sysdev.h>

extern struct mutex cpuquiet_lock;
extern struct cpuquiet_governor *cpuquiet_curr_governor;
extern struct list_head cpuquiet_governors;
int cpuquiet_add_class_sysfs(struct sysdev_class *cls);
struct cpuquiet_governor *cpuquiet_find_governor(const char *str);
int cpuquiet_switch_governor(struct cpuquiet_governor *gov);
struct cpuquiet_governor *cpuquiet_get_first_governor(void);
struct cpuquiet_driver *cpuquiet_get_driver(void);
void cpuquiet_add_dev(struct sys_device *sys_dev, unsigned int cpu);
void cpuquiet_remove_dev(unsigned int cpu);
int cpuquiet_cpu_kobject_init(struct kobject *kobj, struct kobj_type *type,
				char *name, int cpu);
#endif