1
0
Fork 0
forked from len0rd/rockbox

FFT plugin: remove redundant NUM_CORES checks.

git-svn-id: svn://svn.rockbox.org/rockbox/trunk@29366 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
Michael Sevakis 2011-02-21 14:54:08 +00:00
parent a18e131282
commit 6cc07f1466

View file

@ -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