Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 355817
b: refs/heads/master
c: ef201de
h: refs/heads/master
i:
  355815: 2f67883
v: v3
  • Loading branch information
Mark Rutland committed Jan 31, 2013
1 parent 29b0ee4 commit 5f8943c
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 13 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: 2b55d10c46815d9660c0f1bc6044f7019ff384aa
refs/heads/master: ef201de430b0deb62a9afd2c4e67f04525cec43c
12 changes: 0 additions & 12 deletions trunk/arch/arm/kernel/arch_timer.c
Original file line number Diff line number Diff line change
Expand Up @@ -20,11 +20,9 @@
#include <linux/of_irq.h>
#include <linux/io.h>

#include <asm/cputype.h>
#include <asm/delay.h>
#include <asm/localtimer.h>
#include <asm/arch_timer.h>
#include <asm/system_info.h>
#include <asm/sched_clock.h>

static unsigned long arch_timer_rate;
Expand Down Expand Up @@ -259,20 +257,10 @@ static int __cpuinit arch_timer_setup(struct clock_event_device *clk)
return 0;
}

/* Is the optional system timer available? */
static int local_timer_is_architected(void)
{
return (cpu_architecture() >= CPU_ARCH_ARMv7) &&
((read_cpuid_ext(CPUID_EXT_PFR1) >> 16) & 0xf) == 1;
}

static int arch_timer_available(void)
{
unsigned long freq;

if (!local_timer_is_architected())
return -ENXIO;

if (arch_timer_rate == 0) {
freq = arch_timer_reg_read(ARCH_TIMER_PHYS_ACCESS,
ARCH_TIMER_REG_FREQ);
Expand Down

0 comments on commit 5f8943c

Please sign in to comment.