From 6cc07f146636e4e3f5622dd88ee7e3cb6a7ea386 Mon Sep 17 00:00:00 2001 From: Michael Sevakis Date: Mon, 21 Feb 2011 14:54:08 +0000 Subject: FFT plugin: remove redundant NUM_CORES checks. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@29366 a1c6a512-1295-4272-9138-f99709370657 --- apps/plugins/fft/fft.c | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) (limited to 'apps/plugins') 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) continue; } -#if NUM_CORES > 1 /* write back output for other processor and invalidate for next frame read */ rb->cpucache_invalidate(); -#endif + int new_tail = output_tail ^ 1; /* if full, block waiting until reader has freed a slot */ @@ -1290,9 +1289,7 @@ static void fft_close_fft(void) /* Handle our FFT thread. */ fft_thread_run = false; rb->thread_wait(fft_thread); -#if NUM_CORES > 1 rb->cpucache_invalidate(); -#endif } #else /* NUM_CORES == 1 */ /* everything serialize on single-core and FFT gets to use IRAM main stack if -- cgit v1.2.3