Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/arch/arm/arm32 cpu_fork(): If PMCs are not enabled in th...
details: https://anonhg.NetBSD.org/src/rev/828b561f72bf
branches: trunk
changeset: 535080:828b561f72bf
user: thorpej <thorpej%NetBSD.org@localhost>
date: Fri Aug 09 23:44:17 2002 +0000
description:
cpu_fork(): If PMCs are not enabled in the parent, clear the machine-
dependent PMC state in the child.
diffstat:
sys/arch/arm/arm32/vm_machdep.c | 6 +++++-
1 files changed, 5 insertions(+), 1 deletions(-)
diffs (20 lines):
diff -r 082528024a2c -r 828b561f72bf sys/arch/arm/arm32/vm_machdep.c
--- a/sys/arch/arm/arm32/vm_machdep.c Fri Aug 09 23:08:39 2002 +0000
+++ b/sys/arch/arm/arm32/vm_machdep.c Fri Aug 09 23:44:17 2002 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: vm_machdep.c,v 1.18 2002/08/07 05:14:58 briggs Exp $ */
+/* $NetBSD: vm_machdep.c,v 1.19 2002/08/09 23:44:17 thorpej Exp $ */
/*
* Copyright (c) 1994-1998 Mark Brinicombe.
@@ -131,6 +131,10 @@
#if defined(PERFCTRS)
if (PMC_ENABLED(p1))
pmc_md_fork(p1, p2);
+ else {
+ p2->p_md.pmc_enabled = 0;
+ p2->p_md.pmc_state = NULL;
+ }
#endif
/* Copy the pcb */
Home |
Main Index |
Thread Index |
Old Index