1
0
Fork 0
forked from len0rd/rockbox

Fix some more straggling stuff

* HWCODEC bootloaders

* Remove references to thread structures outside the kernel. They are
private and should not be used elsewhere. The mrobe-100 is an offender
that gets squashed.

* The ata.c hack stuff for large sector disks on iPod Video gets squashed
for the same reason. I will no longer maintain it, period; please find
the real reason for its difficulties.

Change-Id: Iae1a675beac887754eb3cc59b560c941077523f5
This commit is contained in:
Michael Sevakis 2014-08-08 03:23:29 -04:00
parent 4ea4cdfc11
commit 9a3400a4a6
5 changed files with 7 additions and 88 deletions

View file

@ -500,14 +500,14 @@ void lcd_remote_off(void)
void lcd_remote_on(void)
{
/* Only wake the remote thread if it's in the blocked state. */
struct thread_entry *rc_thread = thread_id_entry(remote_thread_id);
if (rc_thread->state == STATE_BLOCKED || (rc_status & RC_FORCE_DETECT))
if (semaphore_wait(&rc_thread_wakeup, 0) == OBJ_WAIT_TIMEDOUT ||
(rc_status & RC_FORCE_DETECT))
{
rc_status &= ~RC_FORCE_DETECT;
rc_status &= ~RC_POWER_OFF;
semaphore_release(&rc_thread_wakeup);
}
semaphore_release(&rc_thread_wakeup);
}
bool remote_detect(void)