diff options
author | Boris Gjenero <boris.gjenero@gmail.com> | 2012-02-04 22:27:42 -0500 |
---|---|---|
committer | Boris Gjenero <boris.gjenero@gmail.com> | 2012-02-04 22:27:42 -0500 |
commit | 0a8235d0525b531ba932cdbb27c9092ec58a9323 (patch) | |
tree | d810b11d97cbe263deba10f4b10704132c720252 /firmware/thread.c | |
parent | 67dd4d6995c2bef9910e031f23aae88e07354587 (diff) | |
download | rockbox-0a8235d0525b531ba932cdbb27c9092ec58a9323.tar.gz rockbox-0a8235d0525b531ba932cdbb27c9092ec58a9323.zip |
Use commit_dcache() instead of commit_discard_idcache() where possible
- PCM playback DMA doesn't need the discard. Only recording DMA would
need it.
- When creating threads for another core, the core creating the thread only
needs to commit. The discard on the other core is handled elsewhere.
Change-Id: I864a0777e22f221a66218efd2c02ff3ad3889736
Diffstat (limited to 'firmware/thread.c')
-rw-r--r-- | firmware/thread.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/firmware/thread.c b/firmware/thread.c index 4c15fcc294..ce9252ccc6 100644 --- a/firmware/thread.c +++ b/firmware/thread.c | |||
@@ -1609,7 +1609,7 @@ unsigned int create_thread(void (*function)(void), | |||
1609 | /* Writeback stack munging or anything else before starting */ | 1609 | /* Writeback stack munging or anything else before starting */ |
1610 | if (core != CURRENT_CORE) | 1610 | if (core != CURRENT_CORE) |
1611 | { | 1611 | { |
1612 | commit_discard_idcache(); | 1612 | commit_dcache(); |
1613 | } | 1613 | } |
1614 | #endif | 1614 | #endif |
1615 | 1615 | ||