Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 374581
b: refs/heads/master
c: 44952d3
h: refs/heads/master
i:
  374579: 762d327
v: v3
  • Loading branch information
Eduardo Valentin authored and Zhang Rui committed Apr 24, 2013
1 parent 1bd1c9a commit 4bc6a41
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 1 deletion.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 2d6f28fedcd2842635a02b29e3823ba9881d5086
refs/heads/master: 44952d338ad73439b993c7a09a93a3a688e49768
11 changes: 11 additions & 0 deletions trunk/drivers/thermal/cpu_cooling.c
Original file line number Diff line number Diff line change
Expand Up @@ -208,6 +208,17 @@ static int get_property(unsigned int cpu, unsigned long input,
return -EINVAL;
}

/**
* cpufreq_cooling_get_level - for a give cpu, return the cooling level.
* @cpu: cpu for which the level is required
* @freq: the frequency of interest
*
* This function will match the cooling level corresponding to the
* requested @freq and return it.
*
* Return: The matched cooling level on success or THERMAL_CSTATE_INVALID
* otherwise.
*/
unsigned long cpufreq_cooling_get_level(unsigned int cpu, unsigned int freq)
{
unsigned int val;
Expand Down

0 comments on commit 4bc6a41

Please sign in to comment.