This message generated a parse failure. Raw output follows here. Please use 'back' to navigate. From devnull@lkml.org Fri Feb 26 17:20:20 2021 Envelope-to: j@jasper.es Delivery-date: Thu, 31 Oct 2013 02:48:53 +0100 Received: from localhost ([127.0.0.1] helo=squeeze.vs19.net) by squeeze.vs19.net with esmtp (Exim 4.80) (envelope-from ) id 1VbhNV-0004L0-CE for j@jasper.es; Thu, 31 Oct 2013 02:48:53 +0100 Original-Recipient: rfc822;jasper@telfort.nl Received: from pop3.telfort.nl [213.75.3.52] by squeeze.vs19.net with POP3 (fetchmail-6.3.21) for (single-drop); Thu, 31 Oct 2013 02:48:53 +0100 (CET) Received: from cpxmta-msg09.kpnxchange.com (10.94.114.30) by cpxmbs-msg01.support.local (8.6.060.31) id 525DCADF00CE9EEF for jasper@telfort.nl; Thu, 31 Oct 2013 02:33:47 +0100 Received: from cpsmtpb-ews03.kpnxchange.com (213.75.39.6) by cpxmta-msg09.kpnxchange.com (8.6.060.14) id 522FC1CF05CC997C for jasper@telfort.nl; Thu, 31 Oct 2013 02:33:47 +0100 Received: from cpsps-ews09.kpnxchange.com ([10.94.84.176]) by cpsmtpb-ews03.kpnxchange.com with Microsoft SMTPSVC(7.5.7601.17514); Thu, 31 Oct 2013 02:33:46 +0100 Received: from vger.kernel.org ([209.132.180.67]) by cpsps-ews09.kpnxchange.com with Microsoft SMTPSVC(7.5.7601.17514); Thu, 31 Oct 2013 02:33:46 +0100 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752118Ab3JaBd0 convert rfc822-to-quoted-printable (ORCPT ); Wed, 30 Oct 2013 21:33:26 -0400 Received: from mga11.intel.com ([192.55.52.93]:46621 "EHLO mga11.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751742Ab3JaBdY (ORCPT ); Wed, 30 Oct 2013 21:33:24 -0400 Received: from fmsmga002.fm.intel.com ([10.253.24.26]) by fmsmga102.fm.intel.com with ESMTP; 30 Oct 2013 18:33:24 -0700 X-ExtLoop1: 1 X-Ironport-AV: E=Sophos;i="4.93,605,1378882800"; d="scan'208";a="425519117" Received: from unknown (HELO [10.255.14.246]) ([10.255.14.246]) by fmsmga002.fm.intel.com with ESMTP; 30 Oct 2013 18:33:22 -0700 Message-Id: <5271B362.2040208@linux.intel.com> Date: Wed, 30 Oct 2013 18:33:22 -0700 From: Srinivas Pandruvada User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:24.0) Gecko/20100101 Thunderbird/24.0 Mime-Version: 1.0 To: "R, Durgadoss" , "Zhang, Rui" Cc: "eduardo.valentin@ti.com" , "linux-pm@vger.kernel.org" , "linux-kernel@vger.kernel.org" , "hongbo.zhang@freescale.com" , "wni@nvidia.com" <1380652688-5787-6-git-send-email-durgadoss.r@intel.com> <1381835008.2080.45.camel@rzhang1-mobl4> <4D68720C2E767A4AA6A8796D42C8EB59DB0FA4@BGSMSX101.gar.corp.intel.com> In-Reply-To: <4D68720C2E767A4AA6A8796D42C8EB59DB0FA4@BGSMSX101.gar.corp.intel.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: QUOTED-PRINTABLE Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-Id: X-Mailing-List: linux-kernel@vger.kernel.org X-OriginalArrivalTime: 31 Oct 2013 01:33:46.0335 (UTC) FILETIME=[3DE4D6F0:01CED5D9] X-RcptDomain: telfort.nl You might want to use new DEVICE_ATTR_RO and DEVICE_ATTR_RW in this=20 series. GKH wanted this changes in my powercap patchset. Thanks, Srinivas On 10/15/2013 06:12 AM, R, Durgadoss wrote: >> -----Original Message----- >> From: Zhang, Rui >> Sent: Tuesday, October 15, 2013 4:33 PM >> To: R, Durgadoss >> Cc: eduardo.valentin@ti.com; linux-pm@vger.kernel.org; linux- >> kernel@vger.kernel.org; hongbo.zhang@freescale.com; wni@nvidia.com >> Subject: Re: [PATCHv4 5/9] Thermal: Add trip point sysfs nodes for s= ensor >> >> On Wed, 2013-10-02 at 00:08 +0530, Durgadoss R wrote: >>> This patch adds a trip point related sysfs nodes >>> for each sensor under a zone in /sys/class/thermal/zoneX/. >>> The nodes will be named, sensorX_trip_activeY, >>> sensorX_trip_passiveY, sensorX_trip_hot, sensorX_trip_critical >>> for active, passive, hot and critical trip points >>> respectively for sensorX. >>> >>> Signed-off-by: Durgadoss R >>> --- >>> drivers/thermal/thermal_core.c | 344 >> +++++++++++++++++++++++++++++++++++++++- >>> include/linux/thermal.h | 40 ++++- >>> 2 files changed, 379 insertions(+), 5 deletions(-) >>> >>> diff --git a/drivers/thermal/thermal_core.c b/drivers/thermal/therm= al_core.c >>> index 3c4ef62..d6e29f6 100644 >>> --- a/drivers/thermal/thermal_core.c >>> +++ b/drivers/thermal/thermal_core.c >>> @@ -494,6 +494,60 @@ static void thermal_zone_device_check(struct >> work_struct *work) >>> thermal_zone_device_update(tz); >>> } >>> >>> +static int get_sensor_indx_by_kobj(struct thermal_zone *tz, const = char >> *name) >>> +{ >>> + int i, indx =3D -EINVAL; >>> + >>> + /* Protect against tz->sensors[i] being unregistered */ >>> + mutex_lock(&sensor_list_lock); >>> + >>> + for (i =3D 0; i < tz->sensor_indx; i++) { >>> + if (!strnicmp(name, kobject_name(&tz->sensors[i]- >>> device.kobj), >>> + THERMAL_NAME_LENGTH)) { >>> + indx =3D i; >>> + break; >>> + } >>> + } >>> + >>> + mutex_unlock(&sensor_list_lock); >>> + return indx; >>> +} >>> + >>> +static void __remove_trip_attr(struct thermal_zone *tz, int indx) >>> +{ >>> + int i; >>> + struct thermal_trip_attr *attr =3D tz->trip_attr[indx]; >>> + struct thermal_trip_point *trip =3D tz->sensor_trip[indx]; >>> + >>> + if (!attr || !trip) >>> + return; >>> + >>> + if (trip->crit !=3D THERMAL_TRIPS_NONE) >>> + device_remove_file(&tz->device, &attr->crit_attr.attr); >>> + >>> + if (trip->hot !=3D THERMAL_TRIPS_NONE) >>> + device_remove_file(&tz->device, &attr->hot_attr.attr); >>> + >>> + if (trip->num_passive_trips > 0) { >>> + for (i =3D 0; i < trip->num_passive_trips; i++) { >>> + device_remove_file(&tz->device, >>> + &attr->passive_attrs[i].attr); >>> + } >>> + kfree(attr->passive_attrs); >>> + } >>> + >>> + if (trip->num_active_trips > 0) { >>> + for (i =3D 0; i < trip->num_active_trips; i++) { >>> + device_remove_file(&tz->device, >>> + &attr->active_attrs[i].attr); >>> + } >>> + kfree(attr->active_attrs); >>> + } >>> + >>> + kfree(tz->trip_attr[indx]); >>> + tz->trip_attr[indx] =3D NULL; >>> +} >>> + >>> static void remove_sensor_from_zone(struct thermal_zone *tz, >>> struct thermal_sensor *ts) >>> { >>> @@ -503,13 +557,19 @@ static void remove_sensor_from_zone(struct >> thermal_zone *tz, >>> if (indx < 0) >>> return; >>> >>> - sysfs_remove_link(&tz->device.kobj, kobject_name(&ts->device.kobj= )); >>> - >>> mutex_lock(&tz->lock); >>> >>> + /* Remove trip point attributes associated with this sensor */ >>> + __remove_trip_attr(tz, indx); >>> + >>> + sysfs_remove_link(&tz->device.kobj, kobject_name(&ts->device.kobj= )); >>> + >>> /* Shift the entries in the tz->sensors array */ >>> - for (j =3D indx; j < MAX_SENSORS_PER_ZONE - 1; j++) >>> + for (j =3D indx; j < MAX_SENSORS_PER_ZONE - 1; j++) { >>> tz->sensors[j] =3D tz->sensors[j + 1]; >>> + tz->sensor_trip[j] =3D tz->sensor_trip[j + 1]; >>> + tz->trip_attr[j] =3D tz->trip_attr[j + 1]; >>> + } >>> >>> tz->sensor_indx--; >>> mutex_unlock(&tz->lock); >>> @@ -952,6 +1012,111 @@ emul_temp_store(struct device *dev, struct >> device_attribute *attr, >>> static DEVICE_ATTR(emul_temp, S_IWUSR, NULL, emul_temp_store); >>> #endif/*CONFIG_THERMAL_EMULATION*/ >>> >>> +static ssize_t >>> +active_trip_show(struct device *dev, struct device_attribute *attr= , char *buf) >>> +{ >>> + int i, j, val; >>> + char kobj_name[THERMAL_NAME_LENGTH]; >>> + struct thermal_zone *tz =3D to_zone(dev); >>> + >>> + if (!sscanf(attr->attr.name, "sensor%d_trip_active%d", &i, &j)) >>> + return -EINVAL; >>> + >>> + snprintf(kobj_name, THERMAL_NAME_LENGTH, "sensor%d", i); >>> + >>> + mutex_lock(&tz->lock); >>> + >>> + i =3D get_sensor_indx_by_kobj(tz, kobj_name); >>> + if (i < 0) { >>> + mutex_unlock(&tz->lock); >>> + return i; >>> + } >>> + >>> + val =3D tz->sensor_trip[i]->active_trips[j]; >>> + mutex_unlock(&tz->lock); >>> + >>> + return sprintf(buf, "%d\n", val); >>> +} >>> + >>> +static ssize_t >>> +passive_trip_show(struct device *dev, struct device_attribute *att= r, char >> *buf) >>> +{ >>> + int i, j, val; >>> + char kobj_name[THERMAL_NAME_LENGTH]; >>> + struct thermal_zone *tz =3D to_zone(dev); >>> + >>> + if (!sscanf(attr->attr.name, "sensor%d_trip_passive%d", &i, &j)) >>> + return -EINVAL; >>> + >>> + snprintf(kobj_name, THERMAL_NAME_LENGTH, "sensor%d", i); >>> + >>> + mutex_lock(&tz->lock); >>> + >>> + i =3D get_sensor_indx_by_kobj(tz, kobj_name); >>> + if (i < 0) { >>> + mutex_unlock(&tz->lock); >>> + return i; >>> + } >>> + >>> + val =3D tz->sensor_trip[i]->passive_trips[j]; >>> + mutex_unlock(&tz->lock); >>> + >>> + return sprintf(buf, "%d\n", val); >>> +} >>> + >>> +static ssize_t >>> +hot_trip_show(struct device *dev, struct device_attribute *attr, c= har *buf) >>> +{ >>> + int indx, val; >>> + char kobj_name[THERMAL_NAME_LENGTH]; >>> + struct thermal_zone *tz =3D to_zone(dev); >>> + >>> + if (!sscanf(attr->attr.name, "sensor%d_trip_hot", &indx)) >>> + return -EINVAL; >>> + >>> + snprintf(kobj_name, THERMAL_NAME_LENGTH, "sensor%d", indx); >>> + >>> + mutex_lock(&tz->lock); >>> + >>> + indx =3D get_sensor_indx_by_kobj(tz, kobj_name); >>> + if (indx < 0) { >>> + mutex_unlock(&tz->lock); >>> + return indx; >>> + } >>> + >>> + val =3D tz->sensor_trip[indx]->hot; >>> + mutex_unlock(&tz->lock); >>> + >>> + return sprintf(buf, "%d\n", val); >>> +} >>> + >>> +static ssize_t >>> +critical_trip_show(struct device *dev, >>> + struct device_attribute *attr, char *buf) >>> +{ >>> + int indx, val; >>> + char kobj_name[THERMAL_NAME_LENGTH]; >>> + struct thermal_zone *tz =3D to_zone(dev); >>> + >>> + if (!sscanf(attr->attr.name, "sensor%d_trip_critical", &indx)) >>> + return -EINVAL; >>> + >>> + snprintf(kobj_name, THERMAL_NAME_LENGTH, "sensor%d", indx); >>> + >>> + mutex_lock(&tz->lock); >>> + >>> + indx =3D get_sensor_indx_by_kobj(tz, kobj_name); >>> + if (indx < 0) { >>> + mutex_unlock(&tz->lock); >>> + return indx; >>> + } >>> + >>> + val =3D tz->sensor_trip[indx]->crit; >>> + mutex_unlock(&tz->lock); >>> + >>> + return sprintf(buf, "%d\n", val); >>> +} >>> + >>> static DEVICE_ATTR(type, 0444, type_show, NULL); >>> static DEVICE_ATTR(temp, 0444, temp_show, NULL); >>> static DEVICE_ATTR(mode, 0644, mode_show, mode_store); >>> @@ -962,7 +1127,8 @@ static DEVICE_ATTR(policy, S_IRUGO | S_IWUSR, >> policy_show, policy_store); >>> static DEVICE_ATTR(sensor_name, 0444, sensor_name_show, NULL); >>> static DEVICE_ATTR(temp_input, 0444, sensor_temp_show, NULL); >>> >>> -static DEVICE_ATTR(zone_name, 0444, zone_name_show, NULL); >>> +/* Thermal zone attributes */ >>> +static DEVICE_ATTR(zone_name, S_IRUGO, zone_name_show, NULL); >>> >>> /* sys I/F for cooling device */ >>> #define to_cooling_device(_dev) \ >>> @@ -1841,6 +2007,43 @@ static int enable_sensor_thresholds(struct >> thermal_sensor *ts, int count) >>> return 0; >>> } >>> >>> +static int create_single_trip_attr(struct thermal_zone *tz, >>> + struct thermal_attr *attr, >>> + const char *attr_name, >>> + ssize_t (*rd_ptr)(struct device *dev, >>> + struct device_attribute *devattr, char *buf)) >>> +{ >>> + snprintf(attr->name, THERMAL_NAME_LENGTH, attr_name); >>> + sysfs_attr_init(&attr->attr.attr); >>> + attr->attr.attr.name =3D attr->name; >>> + attr->attr.attr.mode =3D S_IRUGO; >>> + attr->attr.show =3D rd_ptr; >>> + return device_create_file(&tz->device, &attr->attr); >>> +} >>> + >>> +static int create_multi_trip_attrs(struct thermal_zone *tz, int si= ze, >>> + int indx, struct thermal_attr *attrs, >>> + const char *attr_name, >>> + ssize_t (*rd_ptr)(struct device *dev, >>> + struct device_attribute *devattr, char *buf)) >>> +{ >>> + char name[THERMAL_NAME_LENGTH]; >>> + int i, ret; >>> + >>> + for (i =3D 0; i < size; i++) { >>> + snprintf(name, THERMAL_NAME_LENGTH, attr_name, indx, i); >>> + ret =3D create_single_trip_attr(tz, &attrs[i], name, rd_ptr); >>> + if (ret) >>> + goto exit; >>> + } >>> + return 0; >>> + >>> +exit: >>> + while (--i >=3D 0) >>> + device_remove_file(&tz->device, &attrs[i].attr); >>> + return ret; >>> +} >>> + >>> /** >>> * create_thermal_zone - create sysfs nodes for thermal zone >>> * @name: Name of the thermla zone >>> @@ -2139,6 +2342,139 @@ exit_zone: >>> EXPORT_SYMBOL(add_cdev_to_zone); >>> >>> /** >>> + * add_sensor_trip_info - Add trip point information for @ts in @t= z >>> + * @tz: Thermal zone reference >>> + * @ts: Thermal sensor reference >>> + * @trip: Trip point structure reference >>> + * >>> + * Returns 0 on success, otherwise >>> + * -EINVAL for invalid paramenters >>> + * -EINVAL if @ts is not part of 'this' thermal zone @tz >>> + * -ENOMEM on kzalloc failures >>> + */ >>> +int add_sensor_trip_info(struct thermal_zone *tz, struct thermal_s= ensor *ts, >>> + struct thermal_trip_point *trip) >>> +{ >>> + char name[THERMAL_NAME_LENGTH]; >>> + int i, indx, kobj_indx, ret, size; >>> + struct thermal_trip_attr *attrs; >>> + >>> + if (!tz || !ts || !trip) >>> + return -EINVAL; >>> + >>> + if (!sscanf(kobject_name(&ts->device.kobj), "sensor%d", &kobj_ind= x)) >>> + return -EINVAL; >>> + >>> + mutex_lock(&zone_list_lock); >>> + >>> + indx =3D GET_INDEX(tz, ts, sensor); >>> + if (indx < 0) { >>> + ret =3D -EINVAL; >>> + goto exit; >>> + } >>> + >>> + /* Protect against 'ts' being unregistered */ >>> + mutex_lock(&sensor_list_lock); >>> + >>> + /* Protect tz->trip_attr[] and tz->sensor_trip[] */ >>> + mutex_lock(&tz->lock); >>> + >>> + tz->trip_attr[indx] =3D kzalloc(sizeof(struct thermal_trip_attr), >>> + GFP_KERNEL); >>> + if (!tz->trip_attr[indx]) { >>> + ret =3D -ENOMEM; >>> + goto exit_lock; >>> + } >>> + >>> + attrs =3D tz->trip_attr[indx]; >>> + >>> + /* Create Critical trip point attribute */ >>> + if (trip->crit !=3D THERMAL_TRIPS_NONE) { >>> + snprintf(name, THERMAL_NAME_LENGTH, >>> + "sensor%d_trip_critical", kobj_indx); >>> + ret =3D create_single_trip_attr(tz, &attrs->crit_attr, >>> + name, critical_trip_show); >>> + if (ret) >>> + goto exit_trip; >>> + } >>> + >>> + /* Create Hot trip point attribute */ >>> + if (trip->hot !=3D THERMAL_TRIPS_NONE) { >>> + snprintf(name, THERMAL_NAME_LENGTH, >>> + "sensor%d_trip_hot", kobj_indx); >>> + ret =3D create_single_trip_attr(tz, &attrs->hot_attr, >>> + name, hot_trip_show); >>> + if (ret) >>> + goto exit_crit_trip; >>> + } >>> + >>> + /* Create Passive trip point attributes */ >>> + if (trip->num_passive_trips > 0) { >>> + size =3D sizeof(struct thermal_attr) * trip->num_passive_trips; >>> + attrs->passive_attrs =3D kzalloc(size, GFP_KERNEL); >>> + if (!attrs->passive_attrs) { >>> + ret =3D -ENOMEM; >>> + goto exit_hot_trip; >>> + } >>> + >>> + ret =3D create_multi_trip_attrs(tz, trip->num_passive_trips, >>> + kobj_indx, attrs->passive_attrs, >>> + "sensor%d_trip_passive%d", >> well, I do not think this is a good code style. >> I prefer to create the attrs one by one, rather than passing this ug= ly >> format string. >> please use create_single_trip_attr() instead if you can not find a c= lean >> way to do this. > Okay, Will change in next revision. > > Thanks, > Durga > >> thanks, >> rui >>> + passive_trip_show); >>> + if (ret) >>> + goto exit_hot_trip; >>> + } >>> + >>> + /* Create Active trip point attributes */ >>> + if (trip->num_active_trips > 0) { >>> + size =3D sizeof(struct thermal_attr) * trip->num_active_trips; >>> + attrs->active_attrs =3D kzalloc(size, GFP_KERNEL); >>> + if (!attrs->active_attrs) { >>> + ret =3D -ENOMEM; >>> + goto exit_passive_trips; >>> + } >>> + >>> + ret =3D create_multi_trip_attrs(tz, trip->num_active_trips, >>> + kobj_indx, attrs->active_attrs, >>> + "sensor%d_trip_active%d", >>> + active_trip_show); >>> + if (ret) >>> + goto exit_passive_trips; >>> + } >>> + >>> + tz->sensor_trip[indx] =3D trip; >>> + >>> + mutex_unlock(&tz->lock); >>> + mutex_unlock(&sensor_list_lock); >>> + mutex_unlock(&zone_list_lock); >>> + >>> + return 0; >>> + >>> +exit_passive_trips: >>> + kfree(attrs->active_attrs); >>> + i =3D trip->num_passive_trips; >>> + while (--i >=3D 0) >>> + device_remove_file(&tz->device, &attrs->passive_attrs[i].attr); >>> +exit_hot_trip: >>> + kfree(attrs->passive_attrs); >>> + if (trip->hot !=3D THERMAL_TRIPS_NONE) >>> + device_remove_file(&tz->device, &attrs->hot_attr.attr); >>> +exit_crit_trip: >>> + if (trip->crit !=3D THERMAL_TRIPS_NONE) >>> + device_remove_file(&tz->device, &attrs->crit_attr.attr); >>> +exit_trip: >>> + kfree(tz->trip_attr[indx]); >>> + tz->trip_attr[indx] =3D NULL; >>> +exit_lock: >>> + mutex_unlock(&tz->lock); >>> + mutex_unlock(&sensor_list_lock); >>> +exit: >>> + mutex_unlock(&zone_list_lock); >>> + return ret; >>> +} >>> +EXPORT_SYMBOL(add_sensor_trip_info); >>> + >>> +/** >>> * thermal_sensor_register - register a new thermal sensor >>> * @name: name of the thermal sensor >>> * @count: Number of thresholds supported by hardware >>> diff --git a/include/linux/thermal.h b/include/linux/thermal.h >>> index da7520c..f8de86d 100644 >>> --- a/include/linux/thermal.h >>> +++ b/include/linux/thermal.h >>> @@ -31,7 +31,7 @@ >>> >>> #define THERMAL_TRIPS_NONE -1 >>> #define THERMAL_MAX_TRIPS 12 >>> -#define THERMAL_NAME_LENGTH 20 >>> +#define THERMAL_NAME_LENGTH 25 >>> >>> /* invalid cooling state */ >>> #define THERMAL_CSTATE_INVALID -1UL >>> @@ -170,6 +170,37 @@ struct thermal_attr { >>> char name[THERMAL_NAME_LENGTH]; >>> }; >>> >>> +/* >>> + * This structure defines the trip points for a sensor. >>> + * The actual values for these trip points come from >>> + * platform characterization. The thermal governors >>> + * (either kernel or user space) may take appropriate >>> + * actions when the sensors reach these trip points. >>> + * See Documentation/thermal/sysfs-api2.txt for more details. >>> + * >>> + * As of now, For a particular sensor, we support: >>> + * a) 1 hot trip point >>> + * b) 1 critical trip point >>> + * c) 'n' passive trip points >>> + * d) 'm' active trip points >>> + */ >>> +struct thermal_trip_point { >>> + int hot; >>> + int crit; >>> + int num_passive_trips; >>> + int *passive_trips; >>> + int num_active_trips; >>> + int *active_trips; >>> + int active_trip_mask; >>> +}; >>> + >>> +struct thermal_trip_attr { >>> + struct thermal_attr hot_attr; >>> + struct thermal_attr crit_attr; >>> + struct thermal_attr *active_attrs; >>> + struct thermal_attr *passive_attrs; >>> +}; >>> + >>> struct thermal_sensor { >>> char name[THERMAL_NAME_LENGTH]; >>> int id; >>> @@ -229,6 +260,10 @@ struct thermal_zone { >>> /* cdev level information */ >>> int cdev_indx; /* index into 'cdevs' array */ >>> struct thermal_cooling_device *cdevs[MAX_CDEVS_PER_ZONE]; >>> + >>> + /* Thermal sensors trip information */ >>> + struct thermal_trip_point *sensor_trip[MAX_SENSORS_PER_ZONE]; >>> + struct thermal_trip_attr *trip_attr[MAX_SENSORS_PER_ZONE]; >>> }; >>> >>> /* Structure that holds thermal governor information */ >>> @@ -309,6 +344,9 @@ struct thermal_sensor *get_sensor_by_name(const >> char *); >>> int add_cdev_to_zone(struct thermal_zone *, struct thermal_coolin= g_device >> *); >>> struct thermal_cooling_device *get_cdev_by_name(const char *); >>> >>> +int add_sensor_trip_info(struct thermal_zone *, struct thermal_sen= sor *, >>> + struct thermal_trip_point *); >>> + >>> #ifdef CONFIG_NET >>> extern int thermal_generate_netlink_event(struct thermal_zone_dev= ice *tz, >>> enum events event); > N=EF=BF=BD=EF=BF=BD=EF=BF=BD=EF=BF=BD=EF=BF=BDr=EF=BF=BD=EF=BF=BDy=EF= =BF=BD=EF=BF=BD=EF=BF=BDb=EF=BF=BDX=EF=BF=BD=EF=BF=BD=C7=A7v=EF=BF=BD^=EF= =BF=BD)=DE=BA{.n=EF=BF=BD+=EF=BF=BD=EF=BF=BD=EF=BF=BD=EF=BF=BD{=EF=BF=BD= =EF=BF=BDh=EF=BF=BD=EF=BF=BD=17=EF=BF=BD=EF=BF=BD=DC=A8}=EF=BF=BD=EF=BF= =BD=EF=BF=BD=C6=A0z=EF=BF=BD&j:+v=EF=BF=BD=EF=BF=BD=EF=BF=BD=07=EF=BF=BD= =EF=BF=BD=EF=BF=BD=EF=BF=BDzZ+=EF=BF=BD=EF=BF=BD+zf=EF=BF=BD=EF=BF=BD=EF= =BF=BDh=EF=BF=BD=EF=BF=BD=EF=BF=BD~=EF=BF=BD=EF=BF=BD=EF=BF=BD=EF=BF=BD= i=EF=BF=BD=EF=BF=BD=EF=BF=BDz=EF=BF=BD=1E=EF=BF=BDw=EF=BF=BD=EF=BF=BD=EF= =BF=BD?=EF=BF=BD=EF=BF=BD=EF=BF=BD=EF=BF=BD&=EF=BF=BD)=DF=A2=1Bfl=3D=3D= =3D -- To unsubscribe from this list: send the line "unsubscribe linux-kernel"= in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/