From 27cf67733936abd75fcb1f8da765977cd75906ee Mon Sep 17 00:00:00 2001 From: Michael Sevakis Date: Tue, 25 Mar 2008 02:34:12 +0000 Subject: Add a complete priority inheritance implementation to the scheduler (all mutex ownership and queue_send calls are inheritable). Priorities are differential so that dispatch depends on the runnable range of priorities. Codec priority can therefore be raised in small steps (pcmbuf updated to enable). Simplify the kernel functions to ease implementation and use the same kernel.c for both sim and target (I'm tired of maintaining two ;_). 1) Not sure if a minor audio break at first buffering issue will exist on large-sector disks (the main mutex speed issue was genuinely resolved earlier). At this point it's best dealt with at the buffering level. It seems a larger filechunk could be used again. 2) Perhaps 64-bit sims will have some minor issues (finicky) but a backroll of the code of concern there is a 5-minute job. All kernel objects become incompatible so a full rebuild and update is needed. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@16791 a1c6a512-1295-4272-9138-f99709370657 --- firmware/SOURCES | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) (limited to 'firmware/SOURCES') diff --git a/firmware/SOURCES b/firmware/SOURCES index 6ef129f4b9..0a8ac2a8e3 100644 --- a/firmware/SOURCES +++ b/firmware/SOURCES @@ -9,11 +9,11 @@ usb.c #ifdef ROCKBOX_HAS_LOGF logf.c #endif /* ROCKBOX_HAS_LOGF */ +kernel.c #ifndef SIMULATOR #ifdef RB_PROFILE profile.c #endif /* RB_PROFILE */ -kernel.c rolo.c thread.c timer.c @@ -274,6 +274,10 @@ target/sh/archos/descramble.S #ifndef SIMULATOR target/coldfire/crt0.S +#ifdef HAVE_PRIORITY_SCHEDULING +common/ffs.c +target/coldfire/ffs-coldfire.S +#endif target/coldfire/memcpy-coldfire.S target/coldfire/memmove-coldfire.S target/coldfire/memset-coldfire.S @@ -299,6 +303,9 @@ common/strlen.c #ifndef SIMULATOR target/arm/memset-arm.S target/arm/memset16-arm.S +#ifdef HAVE_PRIORITY_SCHEDULING +target/arm/ffs-arm.S +#endif #if CONFIG_I2C == I2C_PP5024 || CONFIG_I2C == I2C_PP5020 || CONFIG_I2C == I2C_PP5002 target/arm/i2c-pp.c #elif CONFIG_I2C == I2C_PNX0101 @@ -345,6 +352,9 @@ target/arm/crt0.S #else +#ifdef HAVE_PRIORITY_SCHEDULING +common/ffs.c +#endif common/memcpy.c common/memmove.c common/memset.c -- cgit v1.2.3