diff options
Diffstat (limited to 'arch/tile/include')
-rw-r--r-- | arch/tile/include/asm/timex.h | 3 | ||||
-rw-r--r-- | arch/tile/include/hv/hypervisor.h | 5 |
2 files changed, 8 insertions, 0 deletions
diff --git a/arch/tile/include/asm/timex.h b/arch/tile/include/asm/timex.h index 3baf5fc4c0a1..29921f0b86da 100644 --- a/arch/tile/include/asm/timex.h +++ b/arch/tile/include/asm/timex.h | |||
@@ -38,6 +38,9 @@ static inline cycles_t get_cycles(void) | |||
38 | 38 | ||
39 | cycles_t get_clock_rate(void); | 39 | cycles_t get_clock_rate(void); |
40 | 40 | ||
41 | /* Convert nanoseconds to core clock cycles. */ | ||
42 | cycles_t ns2cycles(unsigned long nsecs); | ||
43 | |||
41 | /* Called at cpu initialization to set some low-level constants. */ | 44 | /* Called at cpu initialization to set some low-level constants. */ |
42 | void setup_clock(void); | 45 | void setup_clock(void); |
43 | 46 | ||
diff --git a/arch/tile/include/hv/hypervisor.h b/arch/tile/include/hv/hypervisor.h index f672544cd4f9..103986b0c10a 100644 --- a/arch/tile/include/hv/hypervisor.h +++ b/arch/tile/include/hv/hypervisor.h | |||
@@ -964,6 +964,11 @@ HV_ASIDRange hv_inquire_asid(int idx); | |||
964 | 964 | ||
965 | /** Waits for at least the specified number of nanoseconds then returns. | 965 | /** Waits for at least the specified number of nanoseconds then returns. |
966 | * | 966 | * |
967 | * NOTE: this deprecated function currently assumes a 750 MHz clock, | ||
968 | * and is thus not generally suitable for use. New code should call | ||
969 | * hv_sysconf(HV_SYSCONF_CPU_SPEED), compute a cycle count to wait for, | ||
970 | * and delay by looping while checking the cycle counter SPR. | ||
971 | * | ||
967 | * @param nanosecs The number of nanoseconds to sleep. | 972 | * @param nanosecs The number of nanoseconds to sleep. |
968 | */ | 973 | */ |
969 | void hv_nanosleep(int nanosecs); | 974 | void hv_nanosleep(int nanosecs); |