diff options
author | Rob Herring <rob.herring@calxeda.com> | 2013-04-01 18:53:38 (GMT) |
---|---|---|
committer | Rob Herring <rob.herring@calxeda.com> | 2013-04-10 23:27:12 (GMT) |
commit | 7e48c0b9d9ab07c92cd26f167010cd5a50eb0cec (patch) | |
tree | 05e8d8f956f1b035105fc947cb5ec676a0ddece8 /arch/arm/include | |
parent | c115739da801ea1ea20c48e2991ce6761496bef1 (diff) | |
download | linux-fsl-qoriq-7e48c0b9d9ab07c92cd26f167010cd5a50eb0cec.tar.xz |
ARM: make sched_clock just call a function pointer
This converts sched_clock to simply a call to a function pointer in order
to allow overriding it. This will allow for use with 64-bit counters where
overflow handling is not needed.
Signed-off-by: Rob Herring <rob.herring@calxeda.com>
Diffstat (limited to 'arch/arm/include')
-rw-r--r-- | arch/arm/include/asm/sched_clock.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/arch/arm/include/asm/sched_clock.h b/arch/arm/include/asm/sched_clock.h index e3f7572..3d520dd 100644 --- a/arch/arm/include/asm/sched_clock.h +++ b/arch/arm/include/asm/sched_clock.h @@ -11,4 +11,6 @@ extern void sched_clock_postinit(void); extern void setup_sched_clock(u32 (*read)(void), int bits, unsigned long rate); +extern unsigned long long (*sched_clock_func)(void); + #endif |