timex.h 367 B

123456789101112131415
  1. /* SPDX-License-Identifier: GPL-2.0-only */
  2. /* Copyright Altera Corporation (C) 2014. All rights reserved.
  3. */
  4. #ifndef _ASM_NIOS2_TIMEX_H
  5. #define _ASM_NIOS2_TIMEX_H
  6. typedef unsigned long cycles_t;
  7. extern cycles_t get_cycles(void);
  8. #define get_cycles get_cycles
  9. #define random_get_entropy() (((unsigned long)get_cycles()) ?: random_get_entropy_fallback())
  10. #endif