Linux Kernel
3.7.1
Main Page
Related Pages
Modules
Namespaces
Data Structures
Files
File List
Globals
All
Data Structures
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Macros
Groups
Pages
include
linux
cpu_cooling.h
Go to the documentation of this file.
1
/*
2
* linux/include/linux/cpu_cooling.h
3
*
4
* Copyright (C) 2012 Samsung Electronics Co., Ltd(http://www.samsung.com)
5
* Copyright (C) 2012 Amit Daniel <
[email protected]
>
6
*
7
* ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
8
* This program is free software; you can redistribute it and/or modify
9
* it under the terms of the GNU General Public License as published by
10
* the Free Software Foundation; version 2 of the License.
11
*
12
* This program is distributed in the hope that it will be useful, but
13
* WITHOUT ANY WARRANTY; without even the implied warranty of
14
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
15
* General Public License for more details.
16
*
17
* You should have received a copy of the GNU General Public License along
18
* with this program; if not, write to the Free Software Foundation, Inc.,
19
* 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA.
20
*
21
* ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
22
*/
23
24
#ifndef __CPU_COOLING_H__
25
#define __CPU_COOLING_H__
26
27
#include <
linux/thermal.h
>
28
29
#define CPUFREQ_COOLING_START 0
30
#define CPUFREQ_COOLING_STOP 1
31
32
#ifdef CONFIG_CPU_THERMAL
33
37
struct
thermal_cooling_device
*
cpufreq_cooling_register
(
38
struct
cpumask
*clip_cpus);
39
44
void
cpufreq_cooling_unregister
(
struct
thermal_cooling_device
*
cdev
);
45
#else
/* !CONFIG_CPU_THERMAL */
46
static
inline
struct
thermal_cooling_device
*
cpufreq_cooling_register
(
47
struct
cpumask
*clip_cpus)
48
{
49
return
NULL
;
50
}
51
static
inline
void
cpufreq_cooling_unregister
(
52
struct
thermal_cooling_device
*
cdev
)
53
{
54
return
;
55
}
56
#endif
/* CONFIG_CPU_THERMAL */
57
58
#endif
/* __CPU_COOLING_H__ */
Generated on Thu Jan 10 2013 14:51:14 for Linux Kernel by
1.8.2