-/* $OpenBSD: cpu.h,v 1.16 2023/07/25 18:16:21 cheloha Exp $ */
+/* $OpenBSD: cpu.h,v 1.17 2023/08/05 05:45:52 guenther Exp $ */
/*
* Copyright (c) 2019 Mike Larkin <mlarkin@openbsd.org>
extern int cpu_errata_sifive_cip_1200;
+#define cpu_idle_enter() do { /* nothing */ } while (0)
+#define cpu_idle_leave() do { /* nothing */ } while (0)
+
#endif /* _KERNEL */
#ifdef MULTIPROCESSOR
-/* $OpenBSD: machdep.c,v 1.30 2022/12/06 00:11:23 jca Exp $ */
+/* $OpenBSD: machdep.c,v 1.31 2023/08/05 05:45:52 guenther Exp $ */
/*
* Copyright (c) 2014 Patrick Wildt <patrick@blueri.se>
sfuart_init_cons();
}
-void
-cpu_idle_enter(void)
-{
-}
-
void
cpu_idle_cycle(void)
{
__asm volatile("wfi");
}
-void
-cpu_idle_leave(void)
-{
-}
-
/* Dummy trapframe for proc0. */
struct trapframe proc0tf;