dt(4): profile: remove clock interrupt staggering
authorcheloha <cheloha@openbsd.org>
Sun, 18 Feb 2024 00:54:03 +0000 (00:54 +0000)
committercheloha <cheloha@openbsd.org>
Sun, 18 Feb 2024 00:54:03 +0000 (00:54 +0000)
Clock interrupt staggering makes profiling more expensive on average.

Remove it.

Thread: https://marc.info/?l=openbsd-tech&m=170751016121770&w=2

ok mpi@

sys/dev/dt/dt_dev.c

index 2383d3a..e111226 100644 (file)
@@ -1,4 +1,4 @@
-/*     $OpenBSD: dt_dev.c,v 1.30 2024/02/09 17:42:18 cheloha Exp $ */
+/*     $OpenBSD: dt_dev.c,v 1.31 2024/02/18 00:54:03 cheloha Exp $ */
 
 /*
  * Copyright (c) 2019 Martin Pieuchot <mpi@openbsd.org>
@@ -497,8 +497,6 @@ dt_ioctl_record_start(struct dt_softc *sc)
                if (dp->dp_nsecs != 0) {
                        clockintr_bind(&dp->dp_clockintr, dp->dp_cpu, dt_clock,
                            dp);
-                       clockintr_stagger(&dp->dp_clockintr, dp->dp_nsecs,
-                           CPU_INFO_UNIT(dp->dp_cpu), MAXCPUS);
                        clockintr_advance(&dp->dp_clockintr, dp->dp_nsecs);
                }
        }