Re: Scheduler improvements

2012-10-07 Thread Gregor Best
[...] I don't think changing the idle loop like this is ok. You want to continue checking whether the runqueue is empty in between cpu_idle_enter() and cpu_idle_leave(). [...] Fair point. I'll change that :) -- Gregor Best

fix athn(4) rfkill switch detection for ar9003

2012-10-07 Thread Stefan Sperling
As reported a while ago (see http://marc.info/?l=openbsd-miscm=132911890531492w=2) athn(4) attaches to some ar9003 chips but fails to get past the hardware rfkill switch. It always reports radio is disabled by hardware switch regardless of the actual state of the switch. I've got an ar9485 which

update athn(4) ar9485 initvals (please test on any athn(4))

2012-10-07 Thread Stefan Sperling
The init values athn(4) has for the ar9485 are for version 1.0 of this chip, which according to Atheros Linux developers was never sold: http://git.kernel.org/?p=linux/kernel/git/torvalds/linux.git;a=commitdiff;h=903946e6e21ef4dd678acafb8881cabde9182caf This diff updates the initvals to what the

Re: fix athn(4) rfkill switch detection for ar9003

2012-10-07 Thread Mark Kettenis
Date: Sun, 7 Oct 2012 18:02:23 +0200 From: Stefan Sperling s...@openbsd.org As reported a while ago (see http://marc.info/?l=openbsd-miscm=132911890531492w=2) athn(4) attaches to some ar9003 chips but fails to get past the hardware rfkill switch. It always reports radio is disabled by

Re: fix athn(4) rfkill switch detection for ar9003

2012-10-07 Thread Stefan Sperling
On Sun, Oct 07, 2012 at 07:41:58PM +0200, Mark Kettenis wrote: Hmm, the AR9300_GPIO_IN_VAL define you introduce isn't actually used. Thanks, I forgot about using it. Not sure if it is important though maybe the upper bits of the register aren't always stable? In any case we should just use the