From ab78b0468088e9011273edc32d59145db9030a7e Mon Sep 17 00:00:00 2001 From: Miika Pekkarinen Date: Fri, 7 Oct 2005 17:38:05 +0000 Subject: 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 --- firmware/export/config.h | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'firmware/export') 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 -- cgit