diff options
author | Amaury Pouly <amaury.pouly@gmail.com> | 2012-01-27 19:50:06 +0100 |
---|---|---|
committer | Amaury Pouly <amaury.pouly@gmail.com> | 2012-01-27 20:08:33 +0100 |
commit | 05ba5c19712250b27cc78e8316b93690fd948a03 (patch) | |
tree | 7ad562d73c01e231665f22ad8c04f62e1c72bb24 /firmware/target/arm/imx233/kernel-imx233.c | |
parent | bf47e577aa7d5d6e64cb6b8a1f8869c62dc5d2f9 (diff) |
imx233: update arbiter to get more debug information, update debug screen accordingly
Change-Id: Ia229e5303692712295f1dbd37a76f865a3eef4ea
Diffstat (limited to 'firmware/target/arm/imx233/kernel-imx233.c')
-rw-r--r-- | firmware/target/arm/imx233/kernel-imx233.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/firmware/target/arm/imx233/kernel-imx233.c b/firmware/target/arm/imx233/kernel-imx233.c index b59d3ed63f..752db68149 100644 --- a/firmware/target/arm/imx233/kernel-imx233.c +++ b/firmware/target/arm/imx233/kernel-imx233.c @@ -71,6 +71,11 @@ int arbiter_acquire(struct channel_arbiter_t *a, int timeout) return chan; } +bool arbiter_acquired(struct channel_arbiter_t *a, int channel) +{ + return !(a->free_bm & (1 << channel)); +} + void arbiter_release(struct channel_arbiter_t *a, int channel) { mutex_lock(&a->mutex); |