Skip to content

Commit

Permalink
staging: omap-thermal: Add print when TSHUT temperature reached
Browse files Browse the repository at this point in the history
To indicate that board was shut down due to TSHUT temperature reached
it is good to print some information message before shutting down.

Signed-off-by: Ruslan Ruslichenko <x0191366@ti.com>
Signed-off-by: Eduardo Valentin <eduardo.valentin@ti.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
  • Loading branch information
Ruslan Ruslichenko authored and Greg Kroah-Hartman committed Mar 11, 2013
1 parent 72c1c06 commit b3bf0e9
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions drivers/staging/omap-thermal/omap-bandgap.c
Original file line number Diff line number Diff line change
Expand Up @@ -133,6 +133,9 @@ static irqreturn_t talert_irq_handler(int irq, void *data)
/* This is the Tshut handler. Call it only if HAS(TSHUT) is set */
static irqreturn_t omap_bandgap_tshut_irq_handler(int irq, void *data)
{
pr_emerg("%s: TSHUT temperature reached. Needs shut down...\n",
__func__);

orderly_poweroff(true);

return IRQ_HANDLED;
Expand Down

0 comments on commit b3bf0e9

Please sign in to comment.