xref: /kernel/linux/linux-5.10/arch/arm/include/asm/timex.h (revision 8c2ecf20)
  • Home
  • History
  • Annotate Annotate
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
  • only in /kernel/linux/linux-5.10/arch/arm/include/asm/
18c2ecf20Sopenharmony_ci/* SPDX-License-Identifier: GPL-2.0-only */
28c2ecf20Sopenharmony_ci/*
38c2ecf20Sopenharmony_ci *  arch/arm/include/asm/timex.h
48c2ecf20Sopenharmony_ci *
58c2ecf20Sopenharmony_ci *  Copyright (C) 1997,1998 Russell King
68c2ecf20Sopenharmony_ci *
78c2ecf20Sopenharmony_ci *  Architecture Specific TIME specifications
88c2ecf20Sopenharmony_ci */
98c2ecf20Sopenharmony_ci#ifndef _ASMARM_TIMEX_H
108c2ecf20Sopenharmony_ci#define _ASMARM_TIMEX_H
118c2ecf20Sopenharmony_ci
128c2ecf20Sopenharmony_citypedef unsigned long cycles_t;
138c2ecf20Sopenharmony_ci#define get_cycles()	({ cycles_t c; read_current_timer(&c) ? 0 : c; })
148c2ecf20Sopenharmony_ci#define random_get_entropy() (((unsigned long)get_cycles()) ?: random_get_entropy_fallback())
158c2ecf20Sopenharmony_ci
168c2ecf20Sopenharmony_ci#endif
17

Indexes created Thu Nov 07 10:32:03 CST 2024