From a85044bf9eaa0a7206c1978d3cfd57ab2d7fae2f Mon Sep 17 00:00:00 2001 From: Miika Pekkarinen Date: Sat, 16 Sep 2006 16:18:11 +0000 Subject: New scheduler, with priorities for swcodec platforms. Frequent task switching should be more efficient and tasks are stored in linked lists to eliminate unnecessary task switching to improve performance. Audio should no longer skip on swcodec targets caused by too CPU hungry UI thread or background threads. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@10958 a1c6a512-1295-4272-9138-f99709370657 --- firmware/buffer.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'firmware/buffer.c') diff --git a/firmware/buffer.c b/firmware/buffer.c index 1eaff33de1..6af8eb9432 100644 --- a/firmware/buffer.c +++ b/firmware/buffer.c @@ -40,7 +40,9 @@ void *buffer_alloc(size_t size) void *retval = audiobuf; audiobuf += size; - /* 32-bit aligned */; + /* 32-bit aligned */ audiobuf = (void *)(((unsigned long)audiobuf + 3) & ~3); + return retval; } + -- cgit v1.2.3