summaryrefslogtreecommitdiffstats
path: root/arch/mn10300/mm/cache-smp-flush.c
diff options
context:
space:
mode:
authorDavid Howells <dhowells@redhat.com>2018-03-08 09:48:46 +0000
committerArnd Bergmann <arnd@arndb.de>2018-03-09 23:19:56 +0100
commit739d875dd6982618020d30f58f8acf10f6076e6d (patch)
tree13deb11d5b2078e49d4e5b6175e5846a22a04b95 /arch/mn10300/mm/cache-smp-flush.c
parentb67aea2bbab780e412b8af3386cc9f78f61a4cac (diff)
downloadop-kernel-dev-739d875dd6982618020d30f58f8acf10f6076e6d.zip
op-kernel-dev-739d875dd6982618020d30f58f8acf10f6076e6d.tar.gz
mn10300: Remove the architecture
Remove the MN10300 arch as the hardware is defunct. Suggested-by: Arnd Bergmann <arnd@arndb.de> Signed-off-by: David Howells <dhowells@redhat.com> cc: Masahiro Yamada <yamada.masahiro@socionext.com> cc: linux-am33-list@redhat.com Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Diffstat (limited to 'arch/mn10300/mm/cache-smp-flush.c')
-rw-r--r--arch/mn10300/mm/cache-smp-flush.c156
1 files changed, 0 insertions, 156 deletions
diff --git a/arch/mn10300/mm/cache-smp-flush.c b/arch/mn10300/mm/cache-smp-flush.c
deleted file mode 100644
index fd51af5..0000000
--- a/arch/mn10300/mm/cache-smp-flush.c
+++ /dev/null
@@ -1,156 +0,0 @@
-/* Functions for global dcache flush when writeback caching in SMP
- *
- * Copyright (C) 2010 Red Hat, Inc. All Rights Reserved.
- * Written by David Howells (dhowells@redhat.com)
- *
- * This program is free software; you can redistribute it and/or
- * modify it under the terms of the GNU General Public Licence
- * as published by the Free Software Foundation; either version
- * 2 of the Licence, or (at your option) any later version.
- */
-#include <linux/mm.h>
-#include <asm/cacheflush.h>
-#include "cache-smp.h"
-
-/**
- * mn10300_dcache_flush - Globally flush data cache
- *
- * Flush the data cache on all CPUs.
- */
-void mn10300_dcache_flush(void)
-{
- unsigned long flags;
-
- flags = smp_lock_cache();
- mn10300_local_dcache_flush();
- smp_cache_call(SMP_DCACHE_FLUSH, 0, 0);
- smp_unlock_cache(flags);
-}
-
-/**
- * mn10300_dcache_flush_page - Globally flush a page of data cache
- * @start: The address of the page of memory to be flushed.
- *
- * Flush a range of addresses in the data cache on all CPUs covering
- * the page that includes the given address.
- */
-void mn10300_dcache_flush_page(unsigned long start)
-{
- unsigned long flags;
-
- start &= ~(PAGE_SIZE-1);
-
- flags = smp_lock_cache();
- mn10300_local_dcache_flush_page(start);
- smp_cache_call(SMP_DCACHE_FLUSH_RANGE, start, start + PAGE_SIZE);
- smp_unlock_cache(flags);
-}
-
-/**
- * mn10300_dcache_flush_range - Globally flush range of data cache
- * @start: The start address of the region to be flushed.
- * @end: The end address of the region to be flushed.
- *
- * Flush a range of addresses in the data cache on all CPUs, between start and
- * end-1 inclusive.
- */
-void mn10300_dcache_flush_range(unsigned long start, unsigned long end)
-{
- unsigned long flags;
-
- flags = smp_lock_cache();
- mn10300_local_dcache_flush_range(start, end);
- smp_cache_call(SMP_DCACHE_FLUSH_RANGE, start, end);
- smp_unlock_cache(flags);
-}
-
-/**
- * mn10300_dcache_flush_range2 - Globally flush range of data cache
- * @start: The start address of the region to be flushed.
- * @size: The size of the region to be flushed.
- *
- * Flush a range of addresses in the data cache on all CPUs, between start and
- * start+size-1 inclusive.
- */
-void mn10300_dcache_flush_range2(unsigned long start, unsigned long size)
-{
- unsigned long flags;
-
- flags = smp_lock_cache();
- mn10300_local_dcache_flush_range2(start, size);
- smp_cache_call(SMP_DCACHE_FLUSH_RANGE, start, start + size);
- smp_unlock_cache(flags);
-}
-
-/**
- * mn10300_dcache_flush_inv - Globally flush and invalidate data cache
- *
- * Flush and invalidate the data cache on all CPUs.
- */
-void mn10300_dcache_flush_inv(void)
-{
- unsigned long flags;
-
- flags = smp_lock_cache();
- mn10300_local_dcache_flush_inv();
- smp_cache_call(SMP_DCACHE_FLUSH_INV, 0, 0);
- smp_unlock_cache(flags);
-}
-
-/**
- * mn10300_dcache_flush_inv_page - Globally flush and invalidate a page of data
- * cache
- * @start: The address of the page of memory to be flushed and invalidated.
- *
- * Flush and invalidate a range of addresses in the data cache on all CPUs
- * covering the page that includes the given address.
- */
-void mn10300_dcache_flush_inv_page(unsigned long start)
-{
- unsigned long flags;
-
- start &= ~(PAGE_SIZE-1);
-
- flags = smp_lock_cache();
- mn10300_local_dcache_flush_inv_page(start);
- smp_cache_call(SMP_DCACHE_FLUSH_INV_RANGE, start, start + PAGE_SIZE);
- smp_unlock_cache(flags);
-}
-
-/**
- * mn10300_dcache_flush_inv_range - Globally flush and invalidate range of data
- * cache
- * @start: The start address of the region to be flushed and invalidated.
- * @end: The end address of the region to be flushed and invalidated.
- *
- * Flush and invalidate a range of addresses in the data cache on all CPUs,
- * between start and end-1 inclusive.
- */
-void mn10300_dcache_flush_inv_range(unsigned long start, unsigned long end)
-{
- unsigned long flags;
-
- flags = smp_lock_cache();
- mn10300_local_dcache_flush_inv_range(start, end);
- smp_cache_call(SMP_DCACHE_FLUSH_INV_RANGE, start, end);
- smp_unlock_cache(flags);
-}
-
-/**
- * mn10300_dcache_flush_inv_range2 - Globally flush and invalidate range of data
- * cache
- * @start: The start address of the region to be flushed and invalidated.
- * @size: The size of the region to be flushed and invalidated.
- *
- * Flush and invalidate a range of addresses in the data cache on all CPUs,
- * between start and start+size-1 inclusive.
- */
-void mn10300_dcache_flush_inv_range2(unsigned long start, unsigned long size)
-{
- unsigned long flags;
-
- flags = smp_lock_cache();
- mn10300_local_dcache_flush_inv_range2(start, size);
- smp_cache_call(SMP_DCACHE_FLUSH_INV_RANGE, start, start + size);
- smp_unlock_cache(flags);
-}
OpenPOWER on IntegriCloud