diff options
author | Visa Hankala <visa@cvs.openbsd.org> | 2017-04-02 03:51:14 +0000 |
---|---|---|
committer | Visa Hankala <visa@cvs.openbsd.org> | 2017-04-02 03:51:14 +0000 |
commit | 14c14663be9a6cfb5ce23ba276e178b0cfd96f15 (patch) | |
tree | 421d60469351e9cff17cc233429023f7663adbb9 /sys | |
parent | 6bf5a6a9f43d93ef58e7669ed5a4d2461d88d948 (diff) |
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.
Diffstat (limited to 'sys')
-rw-r--r-- | sys/arch/mips64/mips64/context.S | 5 |
1 files changed, 4 insertions, 1 deletions
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) |