Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 1 Oct 2011 18:00:18 +0800
From:      Adrian Chadd <adrian@freebsd.org>
To:        Alexander Motin <mav@freebsd.org>
Cc:        freebsd-hackers@freebsd.org
Subject:   Re: how are callouts handled in cpu_idle() ?
Message-ID:  <CAJ-VmomqBRqeoS3iJiGULmj7xLAO9WeTiqtnYvDSGkZ9nECN2A@mail.gmail.com>
In-Reply-To: <4E86E20B.7000703@FreeBSD.org>
References:  <CAJ-Vmoksy68YmTXAQ1S87-%2BFMUHjZ-K0TOV0OUm3hQpYGZhXHw@mail.gmail.com> <4E86DC86.3040204@FreeBSD.org> <CAJ-Vmon1xMpourX1u6%2Bx=Y%2Bpi3G3VNCCJRoO1wHH6kCMKFYKog@mail.gmail.com> <4E86E20B.7000703@FreeBSD.org>

next in thread | previous in thread | raw e-mail | index | archive | help
Right. Hm, what about for i386/amd64 cases we call intr_disable()
before the critical_enter and idleclock, then re-enable either just
before the wait/halt call (like it is now) or just after the
sched_running check (just like it is now.)

That way a filter handler which schedules a callout gets called correctly?


Adrian



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CAJ-VmomqBRqeoS3iJiGULmj7xLAO9WeTiqtnYvDSGkZ9nECN2A>