diff options
author | Michael Sevakis <jethead71@rockbox.org> | 2011-02-21 14:54:08 +0000 |
---|---|---|
committer | Michael Sevakis <jethead71@rockbox.org> | 2011-02-21 14:54:08 +0000 |
commit | 6cc07f146636e4e3f5622dd88ee7e3cb6a7ea386 (patch) | |
tree | 4eccfbb2276323df4a1cf89cb7b350751a73977e /apps/plugins | |
parent | a18e1312820d5ac31579087533ab9b6af5cc329e (diff) | |
download | rockbox-6cc07f146636e4e3f5622dd88ee7e3cb6a7ea386.tar.gz rockbox-6cc07f146636e4e3f5622dd88ee7e3cb6a7ea386.zip |
FFT plugin: remove redundant NUM_CORES checks.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@29366 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps/plugins')
-rw-r--r-- | apps/plugins/fft/fft.c | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/apps/plugins/fft/fft.c b/apps/plugins/fft/fft.c index 2f3b12289d..b6b1e2fead 100644 --- a/apps/plugins/fft/fft.c +++ b/apps/plugins/fft/fft.c | |||
@@ -1226,10 +1226,9 @@ static void fft_thread_entry(void) | |||
1226 | continue; | 1226 | continue; |
1227 | } | 1227 | } |
1228 | 1228 | ||
1229 | #if NUM_CORES > 1 | ||
1230 | /* write back output for other processor and invalidate for next frame read */ | 1229 | /* write back output for other processor and invalidate for next frame read */ |
1231 | rb->cpucache_invalidate(); | 1230 | rb->cpucache_invalidate(); |
1232 | #endif | 1231 | |
1233 | int new_tail = output_tail ^ 1; | 1232 | int new_tail = output_tail ^ 1; |
1234 | 1233 | ||
1235 | /* if full, block waiting until reader has freed a slot */ | 1234 | /* if full, block waiting until reader has freed a slot */ |
@@ -1290,9 +1289,7 @@ static void fft_close_fft(void) | |||
1290 | /* Handle our FFT thread. */ | 1289 | /* Handle our FFT thread. */ |
1291 | fft_thread_run = false; | 1290 | fft_thread_run = false; |
1292 | rb->thread_wait(fft_thread); | 1291 | rb->thread_wait(fft_thread); |
1293 | #if NUM_CORES > 1 | ||
1294 | rb->cpucache_invalidate(); | 1292 | rb->cpucache_invalidate(); |
1295 | #endif | ||
1296 | } | 1293 | } |
1297 | #else /* NUM_CORES == 1 */ | 1294 | #else /* NUM_CORES == 1 */ |
1298 | /* everything serialize on single-core and FFT gets to use IRAM main stack if | 1295 | /* everything serialize on single-core and FFT gets to use IRAM main stack if |