Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 78056
b: refs/heads/master
c: 9900485
h: refs/heads/master
v: v3
  • Loading branch information
Vitaly Wool authored and Ralf Baechle committed Jan 29, 2008
1 parent 29c21b2 commit eb46a59
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 25 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: 8a39c520b28f1ffa528baaae6ecfaa3feb5377a5
refs/heads/master: 9900485893c004245cbaeef050fe6ba5453a5925
35 changes: 11 additions & 24 deletions trunk/arch/mips/philips/pnx8550/common/time.c
Original file line number Diff line number Diff line change
Expand Up @@ -47,11 +47,6 @@ static struct clocksource pnx_clocksource = {
.flags = CLOCK_SOURCE_IS_CONTINUOUS,
};

static void timer_ack(void)
{
write_c0_compare(cpj);
}

static irqreturn_t pnx8xxx_timer_interrupt(int irq, void *dev_id)
{
struct clock_event_device *c = dev_id;
Expand Down Expand Up @@ -94,30 +89,22 @@ static struct clock_event_device pnx8xxx_clockevent = {
.set_next_event = pnx8xxx_set_next_event,
};

/*
* plat_time_init() - it does the following things:
*
* 1) plat_time_init() -
* a) (optional) set up RTC routines,
* b) (optional) calibrate and set the mips_hpt_frequency
* (only needed if you intended to use cpu counter as timer interrupt
* source)
*/
static inline void timer_ack(void)
{
write_c0_compare(cpj);
}

__init void plat_time_init(void)
{
unsigned int configPR;
unsigned int n;
unsigned int m;
unsigned int p;
unsigned int pow2p;
unsigned int configPR;
unsigned int n;
unsigned int m;
unsigned int p;
unsigned int pow2p;

clockevents_register_device(&pnx8xxx_clockevent);
clocksource_register(&pnx_clocksource);

setup_irq(PNX8550_INT_TIMER1, &pnx8xxx_timer_irq);
setup_irq(PNX8550_INT_TIMER2, &monotonic_irqaction);

/* Timer 1 start */
configPR = read_c0_config7();
configPR &= ~0x00000008;
Expand Down Expand Up @@ -158,6 +145,6 @@ __init void plat_time_init(void)
write_c0_count2(0);
write_c0_compare2(0xffffffff);

setup_irq(PNX8550_INT_TIMER1, &pnx8xxx_timer_irq);
setup_irq(PNX8550_INT_TIMER2, &monotonic_irqaction);
}


0 comments on commit eb46a59

Please sign in to comment.