Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 231287
b: refs/heads/master
c: 211baa7
h: refs/heads/master
i:
  231285: 2195f68
  231283: b3b6be9
  231279: ddc36a7
v: v3
  • Loading branch information
Russell King committed Jan 11, 2011
1 parent 47f1f57 commit 065553f
Show file tree
Hide file tree
Showing 4 changed files with 13 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: 1aa023b8fda8096caf41c20427a0ef396d88eb0f
refs/heads/master: 211baa7016894c02fc18693e21ca479cd08ac0c0
2 changes: 2 additions & 0 deletions trunk/arch/arm/include/asm/sched_clock.h
Original file line number Diff line number Diff line change
Expand Up @@ -115,4 +115,6 @@ static inline void init_fixed_sched_clock(struct clock_data *cd,
}
}

extern void sched_clock_postinit(void);

#endif
7 changes: 6 additions & 1 deletion trunk/arch/arm/kernel/sched_clock.c
Original file line number Diff line number Diff line change
Expand Up @@ -60,10 +60,15 @@ void __init init_sched_clock(struct clock_data *cd, void (*update)(void),
* sets the initial epoch.
*/
sched_clock_timer.data = msecs_to_jiffies(w - (w / 10));
sched_clock_poll(sched_clock_timer.data);
update();

/*
* Ensure that sched_clock() starts off at 0ns
*/
cd->epoch_ns = 0;
}

void __init sched_clock_postinit(void)
{
sched_clock_poll(sched_clock_timer.data);
}
4 changes: 4 additions & 0 deletions trunk/arch/arm/kernel/time.c
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@

#include <asm/leds.h>
#include <asm/thread_info.h>
#include <asm/sched_clock.h>
#include <asm/stacktrace.h>
#include <asm/mach/arch.h>
#include <asm/mach/time.h>
Expand Down Expand Up @@ -163,5 +164,8 @@ void __init time_init(void)
{
system_timer = machine_desc->timer;
system_timer->init();
#ifdef CONFIG_HAVE_SCHED_CLOCK
sched_clock_postinit();
#endif
}

0 comments on commit 065553f

Please sign in to comment.