Source-Changes-HG archive

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

[src/trunk]: src/sys/arch/evbmips/ingenic use kcpuset_isset()



details:   https://anonhg.NetBSD.org/src/rev/942845cbacdc
branches:  trunk
changeset: 338848:942845cbacdc
user:      macallan <macallan%NetBSD.org@localhost>
date:      Thu Jun 11 15:38:18 2015 +0000

description:
use kcpuset_isset()

diffstat:

 sys/arch/evbmips/ingenic/machdep.c |  6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diffs (27 lines):

diff -r 7918cd11cd47 -r 942845cbacdc sys/arch/evbmips/ingenic/machdep.c
--- a/sys/arch/evbmips/ingenic/machdep.c        Thu Jun 11 15:36:26 2015 +0000
+++ b/sys/arch/evbmips/ingenic/machdep.c        Thu Jun 11 15:38:18 2015 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: machdep.c,v 1.6 2015/04/04 13:06:01 macallan Exp $ */
+/*     $NetBSD: machdep.c,v 1.7 2015/06/11 15:38:18 macallan Exp $ */
 
 /*-
  * Copyright (c) 2014 Michael Lorenz
@@ -27,7 +27,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: machdep.c,v 1.6 2015/04/04 13:06:01 macallan Exp $");
+__KERNEL_RCSID(0, "$NetBSD: machdep.c,v 1.7 2015/06/11 15:38:18 macallan Exp $");
 
 #include "opt_ddb.h"
 #include "opt_kgdb.h"
@@ -138,7 +138,7 @@
 
        msg = 1 << tag;
 
-       if (cpus_running & (1 << cpu_index(ci))) {
+       if (kcpuset_isset(cpus_running, cpu_index(ci))) {
                if (cpu_index(ci) == 0) {
                        MTC0(msg, CP0_CORE_MBOX, 0);
                } else {



Home | Main Index | Thread Index | Old Index