aboutsummaryrefslogtreecommitdiffstats
path: root/arch/mn10300/mm/cache-disabled.c
diff options
context:
space:
mode:
authorChris Wilson <chris@chris-wilson.co.uk>2010-10-19 09:13:00 +0100
committerChris Wilson <chris@chris-wilson.co.uk>2010-10-19 09:14:50 +0100
commitfb9a90f7c674f3ddef6baf55cb1612dadd8ea752 (patch)
treef25cf2ce17449ba34cdfdfb948134eb3464e400e /arch/mn10300/mm/cache-disabled.c
parent2d7b8366ae4a9ec2183c30e432a4a9a495c82bcd (diff)
parent21c74a8ea8b47eb6c3c621e36578f6e27f65c5c7 (diff)
downloadkernel_goldelico_gta04-fb9a90f7c674f3ddef6baf55cb1612dadd8ea752.zip
kernel_goldelico_gta04-fb9a90f7c674f3ddef6baf55cb1612dadd8ea752.tar.gz
kernel_goldelico_gta04-fb9a90f7c674f3ddef6baf55cb1612dadd8ea752.tar.bz2
Merge remote branch 'airlied/drm-core-next' into tmp
Diffstat (limited to 'arch/mn10300/mm/cache-disabled.c')
-rw-r--r--arch/mn10300/mm/cache-disabled.c21
1 files changed, 21 insertions, 0 deletions
diff --git a/arch/mn10300/mm/cache-disabled.c b/arch/mn10300/mm/cache-disabled.c
new file mode 100644
index 0000000..f669ea4
--- /dev/null
+++ b/arch/mn10300/mm/cache-disabled.c
@@ -0,0 +1,21 @@
+/* Handle the cache being disabled
+ *
+ * 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>
+
+/*
+ * allow userspace to flush the instruction cache
+ */
+asmlinkage long sys_cacheflush(unsigned long start, unsigned long end)
+{
+ if (end < start)
+ return -EINVAL;
+ return 0;
+}