summaryrefslogtreecommitdiffstats
path: root/firmware/export
diff options
context:
space:
mode:
authorMiika Pekkarinen <miipekk@ihme.org>2005-10-07 17:38:05 +0000
committerMiika Pekkarinen <miipekk@ihme.org>2005-10-07 17:38:05 +0000
commitab78b0468088e9011273edc32d59145db9030a7e (patch)
tree5dc785c1f3eec456592b210d1aad39b6f5cf6880 /firmware/export
parent86e31d5558704b8ab83d2e5d5c9dca691a5f768a (diff)
downloadrockbox-ab78b0468088e9011273edc32d59145db9030a7e.tar.gz
rockbox-ab78b0468088e9011273edc32d59145db9030a7e.tar.bz2
rockbox-ab78b0468088e9011273edc32d59145db9030a7e.zip
Implemented directory caching. No more waiting for disk to spin up while
browsing when cache is enabled (system -> disk -> enable directory cache). Cache building on boot is transparent except the first boot. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@7588 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'firmware/export')
-rw-r--r--firmware/export/config.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/firmware/export/config.h b/firmware/export/config.h
index bd817dcb2f..d47ab3d935 100644
--- a/firmware/export/config.h
+++ b/firmware/export/config.h
@@ -117,6 +117,13 @@
/* no known platform */
#endif
+/* Enable the directory cache if we have plenty of RAM. */
+/* Cache is just temporarily disabled for simulator build.
+ * Do the small fix in dircache.c to enable this. */
+#if MEM > 8 && !defined(SIMULATOR)
+#define HAVE_DIRCACHE 1
+#endif
+
/* define for all cpus from coldfire family */
#if (CONFIG_CPU == MCF5249) || (CONFIG_CPU == MCF5250)
#define CPU_COLDFIRE