Skip to content

Commit 251121b

Browse files
committed
sys/intr: remove questionable interrupt report
The "???" interrupt doesn't appear useful any more, so remove it. Differential Revision: https://reviews.freebsd.org/D37869
1 parent da5c7e0 commit 251121b

File tree

2 files changed

+2
-9
lines changed

2 files changed

+2
-9
lines changed

sys/powerpc/powerpc/intr_machdep.c

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -166,7 +166,7 @@ intr_init_sources(void *arg __unused)
166166

167167
powerpc_intrs = mallocarray(num_io_irqs, sizeof(*powerpc_intrs),
168168
M_INTR, M_WAITOK | M_ZERO);
169-
nintrcnt = 1 + mp_ncpus * 2;
169+
nintrcnt = mp_ncpus * 2;
170170
#ifdef COUNT_IPIS
171171
if (mp_ncpus > 1)
172172
nintrcnt += 8 * mp_ncpus;
@@ -175,9 +175,6 @@ intr_init_sources(void *arg __unused)
175175
M_ZERO);
176176
intrnames = mallocarray(nintrcnt, INTRNAME_LEN, M_INTR, M_WAITOK |
177177
M_ZERO);
178-
179-
intrcnt_setname("???", 0);
180-
intrcnt_index = 1;
181178
}
182179
/*
183180
* This needs to happen before SI_SUB_CPU

sys/x86/x86/intr_machdep.c

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -171,12 +171,11 @@ intr_init_sources(void *arg)
171171
#endif
172172

173173
/*
174-
* - 1 ??? dummy counter.
175174
* - 1 counter for each CPU for lapic timer.
176175
* - 1 counter for each CPU for hypervisor drivers.
177176
* - 8 counters for each CPU for IPI counters for SMP.
178177
*/
179-
nintrcnt = 1 + mp_ncpus * 2;
178+
nintrcnt = mp_ncpus * 2;
180179
#ifdef COUNT_IPIS
181180
if (mp_ncpus > 1)
182181
nintrcnt += 8 * mp_ncpus;
@@ -186,9 +185,6 @@ intr_init_sources(void *arg)
186185
intrnames = mallocarray(nintrcnt, INTRNAME_LEN, M_INTR, M_WAITOK |
187186
M_ZERO);
188187

189-
intrcnt_setname("???", 0);
190-
intrcnt_index = 1;
191-
192188
/*
193189
* NB: intrpic_lock is not held here to avoid LORs due to
194190
* malloc() in intr_register_source(). However, we are still

0 commit comments

Comments
 (0)