USB isochronous traffic with Rasberry Pi [WAS: Re: USB audio device on Raspberry Pi]

Hans Petter Selasky hps at selasky.org
Sat May 10 22:24:33 UTC 2014


Hi,

This patch fixes the problem too:

diff --git a/sys/arm/arm/machdep.c b/sys/arm/arm/machdep.c
index 0490be7..8d53fab 100644
--- a/sys/arm/arm/machdep.c
+++ b/sys/arm/arm/machdep.c
@@ -432,8 +432,12 @@ cpu_idle(int busy)
                 cpu_idleclock();
         }
  #endif
+       register_t s;
+       s = intr_disable();
         if (!sched_runnable())
                 cpu_sleep(0);
+       intr_restore(s);
+
  #ifndef NO_EVENTTIMERS
         if (!busy) {
                 cpu_activeclock();

It appears some IRQ is happening when sched_runnable() is running, and 
then cpu_sleep(0) is executed even though sched_runnable() is no longer 
true.

--HPS


More information about the freebsd-arm mailing list