| .. | .. |
|---|
| 1 | +/* SPDX-License-Identifier: GPL-2.0-or-later */ |
|---|
| 1 | 2 | /* |
|---|
| 2 | 3 | * This file contains low-level cache management functions |
|---|
| 3 | 4 | * used for sleep and CPU speed changes on Apple machines. |
|---|
| .. | .. |
|---|
| 6 | 7 | * |
|---|
| 7 | 8 | * Copyright (C) 2004 Paul Mackerras (paulus@samba.org) and |
|---|
| 8 | 9 | * Benjamin Herrenschmidt (benh@kernel.crashing.org) |
|---|
| 9 | | - * |
|---|
| 10 | | - * This program is free software; you can redistribute it and/or |
|---|
| 11 | | - * modify it under the terms of the GNU General Public License |
|---|
| 12 | | - * as published by the Free Software Foundation; either version |
|---|
| 13 | | - * 2 of the License, or (at your option) any later version. |
|---|
| 14 | | - * |
|---|
| 15 | 10 | */ |
|---|
| 16 | 11 | |
|---|
| 17 | 12 | #include <asm/processor.h> |
|---|
| .. | .. |
|---|
| 28 | 23 | */ |
|---|
| 29 | 24 | |
|---|
| 30 | 25 | _GLOBAL(flush_disable_caches) |
|---|
| 31 | | -#ifndef CONFIG_6xx |
|---|
| 26 | +#ifndef CONFIG_PPC_BOOK3S_32 |
|---|
| 32 | 27 | blr |
|---|
| 33 | 28 | #else |
|---|
| 34 | 29 | BEGIN_FTR_SECTION |
|---|
| .. | .. |
|---|
| 53 | 48 | |
|---|
| 54 | 49 | /* Stop DST streams */ |
|---|
| 55 | 50 | BEGIN_FTR_SECTION |
|---|
| 56 | | - DSSALL |
|---|
| 51 | + PPC_DSSALL |
|---|
| 57 | 52 | sync |
|---|
| 58 | 53 | END_FTR_SECTION_IFSET(CPU_FTR_ALTIVEC) |
|---|
| 59 | 54 | |
|---|
| .. | .. |
|---|
| 189 | 184 | |
|---|
| 190 | 185 | mtlr r10 |
|---|
| 191 | 186 | blr |
|---|
| 187 | +_ASM_NOKPROBE_SYMBOL(flush_disable_75x) |
|---|
| 192 | 188 | |
|---|
| 193 | 189 | /* This code is for 745x processors */ |
|---|
| 194 | 190 | flush_disable_745x: |
|---|
| .. | .. |
|---|
| 201 | 197 | isync |
|---|
| 202 | 198 | |
|---|
| 203 | 199 | /* Stop prefetch streams */ |
|---|
| 204 | | - DSSALL |
|---|
| 200 | + PPC_DSSALL |
|---|
| 205 | 201 | sync |
|---|
| 206 | 202 | |
|---|
| 207 | 203 | /* Disable L2 prefetching */ |
|---|
| .. | .. |
|---|
| 356 | 352 | mtmsr r11 /* restore DR and EE */ |
|---|
| 357 | 353 | isync |
|---|
| 358 | 354 | blr |
|---|
| 359 | | -#endif /* CONFIG_6xx */ |
|---|
| 355 | +_ASM_NOKPROBE_SYMBOL(flush_disable_745x) |
|---|
| 356 | +#endif /* CONFIG_PPC_BOOK3S_32 */ |
|---|