18c2ecf20Sopenharmony_ci/* SPDX-License-Identifier: GPL-2.0 */ 28c2ecf20Sopenharmony_ci/* 38c2ecf20Sopenharmony_ci * linux/include/asm/timex.h 48c2ecf20Sopenharmony_ci * 58c2ecf20Sopenharmony_ci * sparc64 architecture timex specifications 68c2ecf20Sopenharmony_ci */ 78c2ecf20Sopenharmony_ci#ifndef _ASMsparc64_TIMEX_H 88c2ecf20Sopenharmony_ci#define _ASMsparc64_TIMEX_H 98c2ecf20Sopenharmony_ci 108c2ecf20Sopenharmony_ci#include <asm/timer.h> 118c2ecf20Sopenharmony_ci 128c2ecf20Sopenharmony_ci#define CLOCK_TICK_RATE 1193180 /* Underlying HZ */ 138c2ecf20Sopenharmony_ci 148c2ecf20Sopenharmony_ci/* Getting on the cycle counter on sparc64. */ 158c2ecf20Sopenharmony_citypedef unsigned long cycles_t; 168c2ecf20Sopenharmony_ci#define get_cycles() tick_ops->get_tick() 178c2ecf20Sopenharmony_ci 188c2ecf20Sopenharmony_ci#define ARCH_HAS_READ_CURRENT_TIMER 198c2ecf20Sopenharmony_ci 208c2ecf20Sopenharmony_ci#endif 21