Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/arch/hpcmips/dev Don't call tx39power_suspend_cpu unless...



details:   https://anonhg.NetBSD.org/src/rev/16be8ed259d2
branches:  trunk
changeset: 521258:16be8ed259d2
user:      takemura <takemura%NetBSD.org@localhost>
date:      Sun Jan 27 11:11:11 2002 +0000

description:
Don't call tx39power_suspend_cpu unless the CPU is TX.

diffstat:

 sys/arch/hpcmips/dev/hpcapm.c |  6 ++++--
 1 files changed, 4 insertions(+), 2 deletions(-)

diffs (20 lines):

diff -r 58799870c9a2 -r 16be8ed259d2 sys/arch/hpcmips/dev/hpcapm.c
--- a/sys/arch/hpcmips/dev/hpcapm.c     Sun Jan 27 11:08:30 2002 +0000
+++ b/sys/arch/hpcmips/dev/hpcapm.c     Sun Jan 27 11:11:11 2002 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: hpcapm.c,v 1.9 2001/12/30 12:57:41 takemura Exp $      */
+/*     $NetBSD: hpcapm.c,v 1.10 2002/01/27 11:11:11 takemura Exp $     */
 
 /*
  * Copyright (c) 2000 Takemura Shin
@@ -406,7 +406,9 @@
                }
 #endif /* NVRIP > 0 */
 #ifdef TX39XX
-               tx39power_suspend_cpu();
+               if (platid_match(&platid, &platid_mask_CPU_MIPS_TX)) {
+                       tx39power_suspend_cpu();
+               }
 #endif
                config_hook_call(CONFIG_HOOK_PMEVENT, 
                                 CONFIG_HOOK_PMEVENT_HARDPOWER,



Home | Main Index | Thread Index | Old Index