-/* $OpenBSD: locore.S,v 1.136 2023/07/10 03:32:10 guenther Exp $ */
+/* $OpenBSD: locore.S,v 1.137 2023/07/25 06:48:37 guenther Exp $ */
/* $NetBSD: locore.S,v 1.13 2004/03/25 18:33:17 drochner Exp $ */
/*
#endif /* DIAGNOSTIC */
END(cpu_switchto)
-ENTRY(cpu_idle_enter)
- ret
- lfence
-END(cpu_idle_enter)
-
-ENTRY(cpu_idle_leave)
- ret
- lfence
-END(cpu_idle_leave)
-
/* placed here for correct static branch prediction in cpu_idle_* */
NENTRY(retpoline_rax)
JMP_RETPOLINE(rax)
-/* $OpenBSD: cpu.h,v 1.155 2023/07/04 17:29:32 cheloha Exp $ */
+/* $OpenBSD: cpu.h,v 1.156 2023/07/25 06:48:37 guenther Exp $ */
/* $NetBSD: cpu.h,v 1.1 2003/04/26 18:39:39 fvdl Exp $ */
/*-
void x86_64_proc0_tss_ldt_init(void);
void cpu_proc_fork(struct proc *, struct proc *);
int amd64_pa_used(paddr_t);
+#define cpu_idle_enter() do { /* nothing */ } while (0)
extern void (*cpu_idle_cycle_fcn)(void);
+#define cpu_idle_leave() do { /* nothing */ } while (0)
struct region_descriptor;
void lgdt(struct region_descriptor *);