Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 297581
b: refs/heads/master
c: a9d6d15
h: refs/heads/master
i:
  297579: bc811c9
v: v3
  • Loading branch information
Linus Walleij authored and Russell King committed Mar 24, 2012
1 parent 4fc60ad commit 59b25d2
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 2 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: f9d4861fc32b995b1616775614459b8f266c803c
refs/heads/master: a9d6d15131b0519363b0c94734ee80955c411093
1 change: 1 addition & 0 deletions trunk/arch/arm/mach-integrator/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ menu "Integrator Options"
config ARCH_INTEGRATOR_AP
bool "Support Integrator/AP and Integrator/PP2 platforms"
select CLKSRC_MMIO
select HAVE_SCHED_CLOCK
select MIGHT_HAVE_PCI
select SERIAL_AMBA_PL010
select SERIAL_AMBA_PL010_CONSOLE
Expand Down
7 changes: 7 additions & 0 deletions trunk/arch/arm/mach-integrator/integrator_ap.c
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@
#include <asm/setup.h>
#include <asm/param.h> /* HZ */
#include <asm/mach-types.h>
#include <asm/sched_clock.h>

#include <mach/lm.h>

Expand Down Expand Up @@ -325,6 +326,11 @@ static void __init ap_init(void)

static unsigned long timer_reload;

static u32 notrace integrator_read_sched_clock(void)
{
return -readl((void __iomem *) TIMER2_VA_BASE + TIMER_VALUE);
}

static void integrator_clocksource_init(unsigned long inrate)
{
void __iomem *base = (void __iomem *)TIMER2_VA_BASE;
Expand All @@ -341,6 +347,7 @@ static void integrator_clocksource_init(unsigned long inrate)

clocksource_mmio_init(base + TIMER_VALUE, "timer2",
rate, 200, 16, clocksource_mmio_readl_down);
setup_sched_clock(integrator_read_sched_clock, 16, rate);
}

static void __iomem * const clkevt_base = (void __iomem *)TIMER1_VA_BASE;
Expand Down
2 changes: 1 addition & 1 deletion trunk/arch/arm/plat-versatile/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ config PLAT_VERSATILE_LEDS
depends on ARCH_REALVIEW || ARCH_VERSATILE

config PLAT_VERSATILE_SCHED_CLOCK
def_bool y if !ARCH_INTEGRATOR_AP
def_bool y
select HAVE_SCHED_CLOCK

endif

0 comments on commit 59b25d2

Please sign in to comment.