Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 298039
b: refs/heads/master
c: c5a01dd
h: refs/heads/master
i:
  298037: a521e44
  298035: b14ff4d
  298031: 597859e
v: v3
  • Loading branch information
Joe Perches authored and Len Brown committed Mar 22, 2012
1 parent 1a17447 commit d28dfff
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 9 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: caca8b803520b0694423e2ac0ee3d58650b04a12
refs/heads/master: c5a01dd52dc4903772f464ea580895ccc36e911d
14 changes: 6 additions & 8 deletions trunk/drivers/thermal/thermal_sys.c
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,8 @@
* ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
*/

#define pr_fmt(fmt) KBUILD_MODNAME ": " fmt

#include <linux/module.h>
#include <linux/device.h>
#include <linux/err.h>
Expand All @@ -39,8 +41,6 @@ MODULE_AUTHOR("Zhang Rui");
MODULE_DESCRIPTION("Generic thermal management sysfs support");
MODULE_LICENSE("GPL");

#define PREFIX "Thermal: "

struct thermal_cooling_device_instance {
int id;
char name[THERMAL_NAME_LENGTH];
Expand Down Expand Up @@ -1023,8 +1023,7 @@ void thermal_zone_device_update(struct thermal_zone_device *tz)

if (tz->ops->get_temp(tz, &temp)) {
/* get_temp failed - retry it later */
printk(KERN_WARNING PREFIX "failed to read out thermal zone "
"%d\n", tz->id);
pr_warn("failed to read out thermal zone %d\n", tz->id);
goto leave;
}

Expand All @@ -1039,9 +1038,8 @@ void thermal_zone_device_update(struct thermal_zone_device *tz)
ret = tz->ops->notify(tz, count,
trip_type);
if (!ret) {
printk(KERN_EMERG
"Critical temperature reached (%ld C), shutting down.\n",
temp/1000);
pr_emerg("Critical temperature reached (%ld C), shutting down\n",
temp/1000);
orderly_poweroff(true);
}
}
Expand Down Expand Up @@ -1345,7 +1343,7 @@ int thermal_generate_netlink_event(u32 orig, enum events event)

result = genlmsg_multicast(skb, 0, thermal_event_mcgrp.id, GFP_ATOMIC);
if (result)
printk(KERN_INFO "failed to send netlink event:%d", result);
pr_info("failed to send netlink event:%d\n", result);

return result;
}
Expand Down

0 comments on commit d28dfff

Please sign in to comment.