Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 123390
b: refs/heads/master
c: 85bfbf4
h: refs/heads/master
v: v3
  • Loading branch information
Sam Ravnborg authored and David S. Miller committed Dec 8, 2008
1 parent 1004d01 commit bd6a85c
Show file tree
Hide file tree
Showing 2 changed files with 9 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: 39f6649b61536138fd16188c1a8dd30795a3696a
refs/heads/master: 85bfbf44c37e403d4fcbcd630b3ca2377b156485
16 changes: 8 additions & 8 deletions trunk/arch/sparc/kernel/pmc.c
Original file line number Diff line number Diff line change
Expand Up @@ -24,32 +24,32 @@
*/

#define PMC_OBPNAME "SUNW,pmc"
#define PMC_DEVNAME "pmc"
#define PMC_DEVNAME "pmc"

#define PMC_IDLE_REG 0x00
#define PMC_IDLE_ON 0x01
#define PMC_IDLE_ON 0x01

static u8 __iomem *regs;

#define pmc_readb(offs) (sbus_readb(regs+offs))
#define pmc_writeb(val, offs) (sbus_writeb(val, regs+offs))
#define pmc_writeb(val, offs) (sbus_writeb(val, regs+offs))

/*
/*
* CPU idle callback function
* See .../arch/sparc/kernel/process.c
*/
static void pmc_swift_idle(void)
{
#ifdef PMC_DEBUG_LED
set_auxio(0x00, AUXIO_LED);
set_auxio(0x00, AUXIO_LED);
#endif

pmc_writeb(pmc_readb(PMC_IDLE_REG) | PMC_IDLE_ON, PMC_IDLE_REG);

#ifdef PMC_DEBUG_LED
set_auxio(AUXIO_LED, 0x00);
set_auxio(AUXIO_LED, 0x00);
#endif
}
}

static int __devinit pmc_probe(struct of_device *op,
const struct of_device_id *match)
Expand All @@ -63,7 +63,7 @@ static int __devinit pmc_probe(struct of_device *op,

#ifndef PMC_NO_IDLE
/* Assign power management IDLE handler */
pm_idle = pmc_swift_idle;
pm_idle = pmc_swift_idle;
#endif

printk(KERN_INFO "%s: power management initialized\n", PMC_DEVNAME);
Expand Down

0 comments on commit bd6a85c

Please sign in to comment.