Correct an error under COUNT_IPIS within pmap_lazyfix_action(): Increment

the counter that the pointer refers to, not the pointer.

MFC after: 3 days
This commit is contained in:
Alan Cox 2007-12-04 09:06:08 +00:00
parent 491bc4fe00
commit d1ce3dfa8d

View File

@ -1443,7 +1443,7 @@ pmap_lazyfix_action(void)
u_int mymask = PCPU_GET(cpumask);
#ifdef COUNT_IPIS
*ipi_lazypmap_counts[PCPU_GET(cpuid)]++;
(*ipi_lazypmap_counts[PCPU_GET(cpuid)])++;
#endif
if (rcr3() == lazyptd)
load_cr3(PCPU_GET(curpcb)->pcb_cr3);