Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 37
b: refs/heads/master
c: fd16230
h: refs/heads/master
i:
  35: 9effb9b
v: v3
  • Loading branch information
Tom Rini authored and Linus Torvalds committed Apr 16, 2005
1 parent aa96dab commit d64a9de
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 3 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: f50b153b1966230e78034d5ab1641ca4bb5db56d
refs/heads/master: fd16230a05751af5a221a1f1c988bb519fd66679
11 changes: 9 additions & 2 deletions trunk/arch/ppc/syslib/m8xx_wdt.c
Original file line number Diff line number Diff line change
Expand Up @@ -11,13 +11,20 @@

#include <linux/init.h>
#include <linux/interrupt.h>
#include <linux/irq.h>
#include <linux/kernel.h>
#include <linux/sched.h>
#include <asm/8xx_immap.h>
#include <syslib/m8xx_wdt.h>

static int wdt_timeout;

static irqreturn_t m8xx_wdt_interrupt(int, void *, struct pt_regs *);
static struct irqaction m8xx_wdt_irqaction = {
.handler = m8xx_wdt_interrupt,
.name = "watchdog",
};

void m8xx_wdt_reset(void)
{
volatile immap_t *imap = (volatile immap_t *)IMAP_ADDR;
Expand Down Expand Up @@ -84,8 +91,8 @@ void __init m8xx_wdt_handler_install(bd_t * binfo)
imap->im_sit.sit_piscr =
(mk_int_int_mask(PIT_INTERRUPT) << 8) | PISCR_PIE | PISCR_PTE;

if (request_irq(PIT_INTERRUPT, m8xx_wdt_interrupt, 0, "watchdog", NULL))
panic("m8xx_wdt: could not allocate watchdog irq!");
if (setup_irq(PIT_INTERRUPT, &m8xx_wdt_irqaction))
panic("m8xx_wdt: error setting up the watchdog irq!");

printk(KERN_NOTICE
"m8xx_wdt: keep-alive trigger installed (PITC: 0x%04X)\n", pitc);
Expand Down

0 comments on commit d64a9de

Please sign in to comment.