.. | .. |
---|
| 1 | +/* SPDX-License-Identifier: GPL-2.0-or-later */ |
---|
1 | 2 | #ifndef _ASM_POWERPC_DELAY_H |
---|
2 | 3 | #define _ASM_POWERPC_DELAY_H |
---|
3 | 4 | #ifdef __KERNEL__ |
---|
.. | .. |
---|
8 | 9 | /* |
---|
9 | 10 | * Copyright 1996, Paul Mackerras. |
---|
10 | 11 | * Copyright (C) 2009 Freescale Semiconductor, Inc. All rights reserved. |
---|
11 | | - * |
---|
12 | | - * This program is free software; you can redistribute it and/or |
---|
13 | | - * modify it under the terms of the GNU General Public License |
---|
14 | | - * as published by the Free Software Foundation; either version |
---|
15 | | - * 2 of the License, or (at your option) any later version. |
---|
16 | 12 | * |
---|
17 | 13 | * PPC64 Support added by Dave Engebretsen, Todd Inglett, Mike Corrigan, |
---|
18 | 14 | * Anton Blanchard. |
---|
.. | .. |
---|
58 | 54 | ({ \ |
---|
59 | 55 | typeof(condition) __ret; \ |
---|
60 | 56 | unsigned long __loops = tb_ticks_per_usec * timeout; \ |
---|
61 | | - unsigned long __start = get_tbl(); \ |
---|
| 57 | + unsigned long __start = mftb(); \ |
---|
62 | 58 | \ |
---|
63 | 59 | if (delay) { \ |
---|
64 | 60 | while (!(__ret = (condition)) && \ |
---|