/* * 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 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