Skip to contentSkip to conversation

drivers/platform/mips/cpu_hwmon.c: should probably let user know when killing machine

PATCH Pavel Machek 1 participant 1 message Oct 25, 2016

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

pr_alert() would be a good thing, I'd say.

Best regards,
Pavel

drivers/platform/mips/cpu_hwmon.c +1 -0
index 4300a55..b18c550 100644
@@ -144,6 +144,7 @@ static void do_thermal_timer(struct work_struct *work)
 	if (value <= CPU_THERMAL_THRESHOLD)
 		schedule_delayed_work(&thermal_work, msecs_to_jiffies(5000));
 	else
+		/* FIXME: printk message about what is going on */
 		orderly_poweroff(true);
 }
 
Signature · 2 lines
(english) http://www.livejournal.com/~pavelmachek
(cesky, pictures) http://atrey.karlin.mff.cuni.cz/~pavel/picture/horses/blog.html