Linux 5.7.7
[linux/fpc-iii.git] / arch / arm / mm / l2c-common.c
blob073b435ae0fe03904c8ad0a12a6e9023361e1c38
1 // SPDX-License-Identifier: GPL-2.0-only
2 /*
3 * Copyright (C) 2010 ARM Ltd.
4 * Written by Catalin Marinas <catalin.marinas@arm.com>
5 */
6 #include <linux/bug.h>
7 #include <linux/smp.h>
8 #include <asm/outercache.h>
10 void outer_disable(void)
12 WARN_ON(!irqs_disabled());
13 WARN_ON(num_online_cpus() > 1);
15 if (outer_cache.disable)
16 outer_cache.disable();