Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 279927
b: refs/heads/master
c: cfef032
h: refs/heads/master
i:
  279925: f801c9d
  279923: 364d0e2
  279919: cb7bfea
v: v3
  • Loading branch information
Linus Walleij authored and Russell King committed Jan 3, 2012
1 parent 31c1674 commit 110082a
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 14 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: 9f9df00accb343f61a5782904af10366a18ebb5a
refs/heads/master: cfef0320ead7d707c363b18bb6f13f6c3bda316a
16 changes: 3 additions & 13 deletions trunk/drivers/clocksource/clksrc-dbx500-prcmu.c
Original file line number Diff line number Diff line change
Expand Up @@ -58,25 +58,15 @@ static struct clocksource clocksource_dbx500_prcmu = {
};

#ifdef CONFIG_CLKSRC_DBX500_PRCMU_SCHED_CLOCK
static DEFINE_CLOCK_DATA(cd);

unsigned long long notrace sched_clock(void)
static u32 notrace dbx500_prcmu_sched_clock_read(void)
{
u32 cyc;

if (unlikely(!clksrc_dbx500_timer_base))
return 0;

cyc = clksrc_dbx500_prcmu_read(&clocksource_dbx500_prcmu);

return cyc_to_sched_clock(&cd, cyc, (u32)~0);
return clksrc_dbx500_prcmu_read(&clocksource_dbx500_prcmu);
}

static void notrace clksrc_dbx500_prcmu_update_sched_clock(void)
{
u32 cyc = clksrc_dbx500_prcmu_read(&clocksource_dbx500_prcmu);
update_sched_clock(&cd, cyc, (u32)~0);
}
#endif

void __init clksrc_dbx500_prcmu_init(void __iomem *base)
Expand All @@ -97,7 +87,7 @@ void __init clksrc_dbx500_prcmu_init(void __iomem *base)
clksrc_dbx500_timer_base + PRCMU_TIMER_REF);
}
#ifdef CONFIG_CLKSRC_DBX500_PRCMU_SCHED_CLOCK
init_sched_clock(&cd, clksrc_dbx500_prcmu_update_sched_clock,
setup_sched_clock(dbx500_prcmu_sched_clock_read,
32, RATE_32K);
#endif
clocksource_calc_mult_shift(&clocksource_dbx500_prcmu,
Expand Down

0 comments on commit 110082a

Please sign in to comment.