mirror of
https://github.com/torvalds/linux.git
synced 2024-12-30 14:52:05 +00:00
7e48c0b9d9
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>
17 lines
503 B
C
17 lines
503 B
C
/*
|
|
* sched_clock.h: support for extending counters to full 64-bit ns counter
|
|
*
|
|
* This program is free software; you can redistribute it and/or modify
|
|
* it under the terms of the GNU General Public License version 2 as
|
|
* published by the Free Software Foundation.
|
|
*/
|
|
#ifndef ASM_SCHED_CLOCK
|
|
#define ASM_SCHED_CLOCK
|
|
|
|
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
|