diff options
Diffstat (limited to 'firmware/drivers/fat.c')
-rw-r--r-- | firmware/drivers/fat.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/firmware/drivers/fat.c b/firmware/drivers/fat.c index 8ae3b70cd3..a538b92695 100644 --- a/firmware/drivers/fat.c +++ b/firmware/drivers/fat.c | |||
@@ -259,6 +259,12 @@ void fat_init(void) | |||
259 | mutex_init(&cache_mutex); | 259 | mutex_init(&cache_mutex); |
260 | } | 260 | } |
261 | 261 | ||
262 | #ifdef HAVE_PRIORITY_SCHEDULING | ||
263 | /* Disable this because it is dangerous due to the assumption that | ||
264 | * mutex_unlock won't yield */ | ||
265 | mutex_set_preempt(&cache_mutex, false); | ||
266 | #endif | ||
267 | |||
262 | /* mark the FAT cache as unused */ | 268 | /* mark the FAT cache as unused */ |
263 | for(i = 0;i < FAT_CACHE_SIZE;i++) | 269 | for(i = 0;i < FAT_CACHE_SIZE;i++) |
264 | { | 270 | { |