From 4bc6a414ef698592037d551f40a9034922adef60 Mon Sep 17 00:00:00 2001 From: Eduardo Valentin Date: Wed, 17 Apr 2013 17:12:05 +0000 Subject: [PATCH] --- yaml --- r: 374581 b: refs/heads/master c: 44952d338ad73439b993c7a09a93a3a688e49768 h: refs/heads/master i: 374579: 762d327a7c12827bd0a6324cd8b37318638db4e4 v: v3 --- [refs] | 2 +- trunk/drivers/thermal/cpu_cooling.c | 11 +++++++++++ 2 files changed, 12 insertions(+), 1 deletion(-) diff --git a/[refs] b/[refs] index 39e028b54732..ac5b0baf9fa9 100644 --- a/[refs] +++ b/[refs] @@ -1,2 +1,2 @@ --- -refs/heads/master: 2d6f28fedcd2842635a02b29e3823ba9881d5086 +refs/heads/master: 44952d338ad73439b993c7a09a93a3a688e49768 diff --git a/trunk/drivers/thermal/cpu_cooling.c b/trunk/drivers/thermal/cpu_cooling.c index 084ef0096cc9..f1a041205a0e 100644 --- a/trunk/drivers/thermal/cpu_cooling.c +++ b/trunk/drivers/thermal/cpu_cooling.c @@ -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;