David Brazdil | 0f672f6 | 2019-12-10 10:32:29 +0000 | [diff] [blame^] | 1 | // SPDX-License-Identifier: GPL-2.0-only |
Andrew Scull | b4b6d4a | 2019-01-02 15:54:55 +0000 | [diff] [blame] | 2 | /* |
| 3 | * Copyright (C) 2010 ARM Ltd. |
| 4 | * Written by Catalin Marinas <catalin.marinas@arm.com> |
Andrew Scull | b4b6d4a | 2019-01-02 15:54:55 +0000 | [diff] [blame] | 5 | */ |
| 6 | #include <linux/bug.h> |
| 7 | #include <linux/smp.h> |
| 8 | #include <asm/outercache.h> |
| 9 | |
| 10 | void outer_disable(void) |
| 11 | { |
| 12 | WARN_ON(!irqs_disabled()); |
| 13 | WARN_ON(num_online_cpus() > 1); |
| 14 | |
| 15 | if (outer_cache.disable) |
| 16 | outer_cache.disable(); |
| 17 | } |