--- linux-2.6.17-rc5-2412-r1/arch/arm/mach-s3c2410/sleep.S	2006-05-25 08:33:27.000000000 +0100
+++ linux-2.6.17-rc5-2412-r8/arch/arm/mach-s3c2410/sleep.S	2006-06-13 22:59:35.000000000 +0100
@@ -66,7 +66,9 @@ ENTRY(s3c2410_cpu_suspend)
 	@@ flush the caches to ensure everything is back out to
 	@@ SDRAM before the core powers down
 
+#ifndef CONFIG_CPU_DCACHE_WRITETHROUGH
 	bl	arm920_flush_kern_cache_all
+#endif
 
 	@@ prepare cpu to sleep
 
--- linux-2.6.17-rc5-2412-r1/arch/arm/mach-s3c2410/pm.c	2006-03-20 05:53:29.000000000 +0000
+++ linux-2.6.17-rc5-2412-r8/arch/arm/mach-s3c2410/pm.c	2006-06-13 22:59:14.000000000 +0100
@@ -58,7 +58,11 @@ unsigned long s3c_pm_flags;
 
 /* cache functions from arch/arm/mm/proc-arm920.S */
 
+#ifndef CONFIG_CPU_DCACHE_WRITETHROUGH
 extern void arm920_flush_kern_cache_all(void);
+#else
+static void arm920_flush_kern_cache_all(void) { }
+#endif
 
 #define PFX "s3c24xx-pm: "
 

