make timer/intc cd_name match config
authorjsg <jsg@openbsd.org>
Fri, 30 Apr 2021 23:00:38 +0000 (23:00 +0000)
committerjsg <jsg@openbsd.org>
Fri, 30 Apr 2021 23:00:38 +0000 (23:00 +0000)
ok kettenis@ mlarkin@

sys/arch/riscv64/dev/riscv_cpu_intc.c
sys/arch/riscv64/dev/timer.c

index c0d7be6..799dc0c 100644 (file)
@@ -55,7 +55,7 @@ struct cfattach        intc_ca = {
 };
 
 struct cfdriver intc_cd = {
-       NULL, "rv_cpu_intc", DV_DULL
+       NULL, "intc", DV_DULL
 };
 
 int
index 946e28d..849b0c9 100644 (file)
@@ -109,7 +109,7 @@ struct cfattach timer_ca = {
 };
 
 struct cfdriver timer_cd = {
-       NULL, "riscv_timer", DV_DULL
+       NULL, "timer", DV_DULL
 };
 
 static inline uint64_t
@@ -274,7 +274,7 @@ riscv_timer_cpu_initclocks()
 
        /* configure virtual timer interrupt */
        sc->sc_ih = riscv_intc_intr_establish(IRQ_TIMER_SUPERVISOR, 0,
-                       riscv_timer_intr, NULL, "riscv_timer");
+                       riscv_timer_intr, NULL, "timer");
 
        next = get_cycles() + sc->sc_ticks_per_intr;
        pc->pc_nexttickevent = pc->pc_nextstatevent = next;