1
0
mirror of https://git.FreeBSD.org/src.git synced 2025-02-08 15:05:17 +00:00

If kernel built with DEVICE_POLLING, keep one CPU always in active state

to handle it.
This commit is contained in:
Alexander Motin 2010-09-22 05:32:37 +00:00
parent 0069293b2b
commit 9dfc483c4a
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=212992

View File

@ -34,6 +34,7 @@ __FBSDID("$FreeBSD$");
/* XEN has own timer routines now. */
#ifndef XEN
#include "opt_device_polling.h"
#include "opt_kdtrace.h"
#include <sys/param.h>
@ -721,7 +722,11 @@ cpu_idleclock(void)
struct pcpu_state *state;
if (idletick || busy ||
(periodic && (timer->et_flags & ET_FLAGS_PERCPU)))
(periodic && (timer->et_flags & ET_FLAGS_PERCPU))
#ifdef DEVICE_POLLING
|| curcpu == CPU_FIRST()
#endif
)
return;
state = DPCPU_PTR(timerstate);
if (periodic)