Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 172443
b: refs/heads/master
c: 980f229
h: refs/heads/master
i:
  172441: 8fcab2c
  172439: afc2655
v: v3
  • Loading branch information
Mikael Pettersson authored and Dan Williams committed Oct 29, 2009
1 parent ac098b4 commit 5352639
Show file tree
Hide file tree
Showing 14 changed files with 2 additions and 41 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: 469d30448dad13600cdd246024f9db8e80614c45
refs/heads/master: 980f2296b5a8dfe589f023fd34229dcfdcf280fa
1 change: 1 addition & 0 deletions trunk/arch/arm/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -811,6 +811,7 @@ config ARCH_ACORN
config PLAT_IOP
bool
select GENERIC_CLOCKEVENTS
select GENERIC_TIME

config PLAT_ORION
bool
Expand Down
1 change: 0 additions & 1 deletion trunk/arch/arm/include/asm/hardware/iop3xx.h
Original file line number Diff line number Diff line change
Expand Up @@ -234,7 +234,6 @@ extern int iop3xx_get_init_atu(void);
void iop3xx_map_io(void);
void iop_init_cp6_handler(void);
void iop_init_time(unsigned long tickrate);
unsigned long iop_gettimeoffset(void);

static inline u32 read_tmr0(void)
{
Expand Down
1 change: 0 additions & 1 deletion trunk/arch/arm/mach-iop13xx/include/mach/time.h
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@
#define IOP13XX_CORE_FREQ_1200 (5 << 16)

void iop_init_time(unsigned long tickrate);
unsigned long iop_gettimeoffset(void);

static inline unsigned long iop13xx_core_freq(void)
{
Expand Down
1 change: 0 additions & 1 deletion trunk/arch/arm/mach-iop13xx/iq81340mc.c
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,6 @@ static void __init iq81340mc_timer_init(void)

static struct sys_timer iq81340mc_timer = {
.init = iq81340mc_timer_init,
.offset = iop_gettimeoffset,
};

MACHINE_START(IQ81340MC, "Intel IQ81340MC")
Expand Down
1 change: 0 additions & 1 deletion trunk/arch/arm/mach-iop13xx/iq81340sc.c
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,6 @@ static void __init iq81340sc_timer_init(void)

static struct sys_timer iq81340sc_timer = {
.init = iq81340sc_timer_init,
.offset = iop_gettimeoffset,
};

MACHINE_START(IQ81340SC, "Intel IQ81340SC")
Expand Down
1 change: 0 additions & 1 deletion trunk/arch/arm/mach-iop32x/em7210.c
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,6 @@ static void __init em7210_timer_init(void)

static struct sys_timer em7210_timer = {
.init = em7210_timer_init,
.offset = iop_gettimeoffset,
};

/*
Expand Down
1 change: 0 additions & 1 deletion trunk/arch/arm/mach-iop32x/glantank.c
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,6 @@ static void __init glantank_timer_init(void)

static struct sys_timer glantank_timer = {
.init = glantank_timer_init,
.offset = iop_gettimeoffset,
};


Expand Down
1 change: 0 additions & 1 deletion trunk/arch/arm/mach-iop32x/iq31244.c
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,6 @@ static void __init iq31244_timer_init(void)

static struct sys_timer iq31244_timer = {
.init = iq31244_timer_init,
.offset = iop_gettimeoffset,
};


Expand Down
1 change: 0 additions & 1 deletion trunk/arch/arm/mach-iop32x/iq80321.c
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,6 @@ static void __init iq80321_timer_init(void)

static struct sys_timer iq80321_timer = {
.init = iq80321_timer_init,
.offset = iop_gettimeoffset,
};


Expand Down
1 change: 0 additions & 1 deletion trunk/arch/arm/mach-iop32x/n2100.c
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,6 @@ static void __init n2100_timer_init(void)

static struct sys_timer n2100_timer = {
.init = n2100_timer_init,
.offset = iop_gettimeoffset,
};


Expand Down
1 change: 0 additions & 1 deletion trunk/arch/arm/mach-iop33x/iq80331.c
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,6 @@ static void __init iq80331_timer_init(void)

static struct sys_timer iq80331_timer = {
.init = iq80331_timer_init,
.offset = iop_gettimeoffset,
};


Expand Down
1 change: 0 additions & 1 deletion trunk/arch/arm/mach-iop33x/iq80332.c
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,6 @@ static void __init iq80332_timer_init(void)

static struct sys_timer iq80332_timer = {
.init = iq80332_timer_init,
.offset = iop_gettimeoffset,
};


Expand Down
29 changes: 0 additions & 29 deletions trunk/arch/arm/plat-iop/time.c
Original file line number Diff line number Diff line change
Expand Up @@ -140,33 +140,6 @@ static void __init iop_clockevent_set_hz(struct clock_event_device *ce, unsigned
ce->name, ce->shift, ce->mult);
}

static unsigned long ticks_per_usec;
static unsigned long next_jiffy_time;

unsigned long iop_gettimeoffset(void)
{
unsigned long offset, temp;

/* enable cp6, if necessary, to avoid taking the overhead of an
* undefined instruction trap
*/
asm volatile (
"mrc p15, 0, %0, c15, c1, 0\n\t"
"tst %0, #(1 << 6)\n\t"
"orreq %0, %0, #(1 << 6)\n\t"
"mcreq p15, 0, %0, c15, c1, 0\n\t"
#ifdef CONFIG_CPU_XSCALE
"mrceq p15, 0, %0, c15, c1, 0\n\t"
"moveq %0, %0\n\t"
"subeq pc, pc, #4\n\t"
#endif
: "=r"(temp) : : "cc");

offset = next_jiffy_time - read_tcr1();

return offset / ticks_per_usec;
}

static irqreturn_t
iop_timer_interrupt(int irq, void *dev_id)
{
Expand Down Expand Up @@ -196,8 +169,6 @@ void __init iop_init_time(unsigned long tick_rate)
u32 timer_ctl;

ticks_per_jiffy = DIV_ROUND_CLOSEST(tick_rate, HZ);
ticks_per_usec = tick_rate / 1000000;
next_jiffy_time = 0xffffffff;
iop_tick_rate = tick_rate;

timer_ctl = IOP_TMR_EN | IOP_TMR_PRIVILEGED |
Expand Down

0 comments on commit 5352639

Please sign in to comment.