.. | .. |
---|
| 1 | +/* SPDX-License-Identifier: GPL-2.0-only */ |
---|
1 | 2 | /* |
---|
2 | 3 | * arch/arm/include/asm/timex.h |
---|
3 | 4 | * |
---|
4 | 5 | * Copyright (C) 1997,1998 Russell King |
---|
5 | | - * |
---|
6 | | - * This program is free software; you can redistribute it and/or modify |
---|
7 | | - * it under the terms of the GNU General Public License version 2 as |
---|
8 | | - * published by the Free Software Foundation. |
---|
9 | 6 | * |
---|
10 | 7 | * Architecture Specific TIME specifications |
---|
11 | 8 | */ |
---|
.. | .. |
---|
14 | 11 | |
---|
15 | 12 | typedef unsigned long cycles_t; |
---|
16 | 13 | #define get_cycles() ({ cycles_t c; read_current_timer(&c) ? 0 : c; }) |
---|
| 14 | +#define random_get_entropy() (((unsigned long)get_cycles()) ?: random_get_entropy_fallback()) |
---|
17 | 15 | |
---|
18 | 16 | #endif |
---|