From 14c14663be9a6cfb5ce23ba276e178b0cfd96f15 Mon Sep 17 00:00:00 2001 From: Visa Hankala Date: Sun, 2 Apr 2017 03:51:14 +0000 Subject: Bring back the wait instruction into the idle loop, but only on octeon. This lets an idle SoC run a bit cooler. Tested on CN5020, CN6120 and CN7130. --- sys/arch/mips64/mips64/context.S | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'sys') diff --git a/sys/arch/mips64/mips64/context.S b/sys/arch/mips64/mips64/context.S index 850bd2799b1..7c38d6cf93a 100644 --- a/sys/arch/mips64/mips64/context.S +++ b/sys/arch/mips64/mips64/context.S @@ -1,4 +1,4 @@ -/* $OpenBSD: context.S,v 1.57 2016/09/06 13:41:29 visa Exp $ */ +/* $OpenBSD: context.S,v 1.58 2017/04/02 03:51:13 visa Exp $ */ /* * Copyright (c) 2002-2003 Opsycon AB (www.opsycon.se / www.opsycon.com) @@ -81,6 +81,9 @@ LEAF(cpu_idle_leave, 0) END(cpu_idle_leave) LEAF(cpu_idle_cycle, 0) +#ifdef CPU_OCTEON + wait +#endif j ra NOP END(cpu_idle_cycle) -- cgit v1.2.3