mirror of
https://github.com/opnsense/src.git
synced 2026-04-29 10:11:09 -04:00
Include the CPU id in the per-CPU timer swi thread descriptions.
Original patch by: jhb
This commit is contained in:
parent
06db1b4a59
commit
f44e2a4c0f
1 changed files with 5 additions and 2 deletions
|
|
@ -352,12 +352,14 @@ static void
|
|||
start_softclock(void *dummy)
|
||||
{
|
||||
struct callout_cpu *cc;
|
||||
char name[MAXCOMLEN];
|
||||
#ifdef SMP
|
||||
int cpu;
|
||||
#endif
|
||||
|
||||
cc = CC_CPU(timeout_cpu);
|
||||
if (swi_add(&clk_intr_event, "clock", softclock, cc, SWI_CLOCK,
|
||||
snprintf(name, sizeof(name), "clock (%d)", timeout_cpu);
|
||||
if (swi_add(&clk_intr_event, name, softclock, cc, SWI_CLOCK,
|
||||
INTR_MPSAFE, &cc->cc_cookie))
|
||||
panic("died while creating standard software ithreads");
|
||||
#ifdef SMP
|
||||
|
|
@ -367,7 +369,8 @@ start_softclock(void *dummy)
|
|||
cc = CC_CPU(cpu);
|
||||
cc->cc_callout = NULL; /* Only cpu0 handles timeout(9). */
|
||||
callout_cpu_init(cc);
|
||||
if (swi_add(NULL, "clock", softclock, cc, SWI_CLOCK,
|
||||
snprintf(name, sizeof(name), "clock (%d)", cpu);
|
||||
if (swi_add(NULL, name, softclock, cc, SWI_CLOCK,
|
||||
INTR_MPSAFE, &cc->cc_cookie))
|
||||
panic("died while creating standard software ithreads");
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue