diff options
Diffstat (limited to 'arch/arm/mm/l2c-common.c')
-rw-r--r-- | arch/arm/mm/l2c-common.c | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/arch/arm/mm/l2c-common.c b/arch/arm/mm/l2c-common.c new file mode 100644 index 000000000000..10a3cf28c362 --- /dev/null +++ b/arch/arm/mm/l2c-common.c | |||
@@ -0,0 +1,20 @@ | |||
1 | /* | ||
2 | * Copyright (C) 2010 ARM Ltd. | ||
3 | * Written by Catalin Marinas <catalin.marinas@arm.com> | ||
4 | * | ||
5 | * This program is free software; you can redistribute it and/or modify | ||
6 | * it under the terms of the GNU General Public License version 2 as | ||
7 | * published by the Free Software Foundation. | ||
8 | */ | ||
9 | #include <linux/bug.h> | ||
10 | #include <linux/smp.h> | ||
11 | #include <asm/outercache.h> | ||
12 | |||
13 | void outer_disable(void) | ||
14 | { | ||
15 | WARN_ON(!irqs_disabled()); | ||
16 | WARN_ON(num_online_cpus() > 1); | ||
17 | |||
18 | if (outer_cache.disable) | ||
19 | outer_cache.disable(); | ||
20 | } | ||