Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/arch/powerpc/oea allocate cpuset structures needed by MP...
details: https://anonhg.NetBSD.org/src/rev/7e9761138581
branches: trunk
changeset: 345483:7e9761138581
user: chs <chs%NetBSD.org@localhost>
date: Mon May 30 13:04:24 2016 +0000
description:
allocate cpuset structures needed by MP DDB.
diffstat:
sys/arch/powerpc/oea/oea_machdep.c | 14 ++++++++++++--
1 files changed, 12 insertions(+), 2 deletions(-)
diffs (35 lines):
diff -r 7481aa697afe -r 7e9761138581 sys/arch/powerpc/oea/oea_machdep.c
--- a/sys/arch/powerpc/oea/oea_machdep.c Mon May 30 11:24:40 2016 +0000
+++ b/sys/arch/powerpc/oea/oea_machdep.c Mon May 30 13:04:24 2016 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: oea_machdep.c,v 1.72 2015/07/06 05:20:50 matt Exp $ */
+/* $NetBSD: oea_machdep.c,v 1.73 2016/05/30 13:04:24 chs Exp $ */
/*
* Copyright (C) 2002 Matt Thomas
@@ -33,7 +33,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: oea_machdep.c,v 1.72 2015/07/06 05:20:50 matt Exp $");
+__KERNEL_RCSID(0, "$NetBSD: oea_machdep.c,v 1.73 2016/05/30 13:04:24 chs Exp $");
#include "opt_ppcarch.h"
#include "opt_compat_netbsd.h"
@@ -1004,6 +1004,16 @@
format_bytes(pbuf, sizeof(pbuf), ptoa(uvmexp.free));
printf("avail memory = %s\n", pbuf);
+
+#ifdef MULTIPROCESSOR
+ kcpuset_create(&cpuset_info.cpus_running, true);
+ kcpuset_create(&cpuset_info.cpus_hatched, true);
+ kcpuset_create(&cpuset_info.cpus_paused, true);
+ kcpuset_create(&cpuset_info.cpus_resumed, true);
+ kcpuset_create(&cpuset_info.cpus_halted, true);
+
+ kcpuset_set(cpuset_info.cpus_running, cpu_number());
+#endif
}
/*
Home |
Main Index |
Thread Index |
Old Index