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 fix: Cortex delay() shorten rarely.
details: https://anonhg.NetBSD.org/src/rev/6a6ae03fd43a
branches: trunk
changeset: 339835:6a6ae03fd43a
user: knakahara <knakahara%NetBSD.org@localhost>
date: Thu Aug 13 02:25:07 2015 +0000
description:
fix: Cortex delay() shorten rarely.
diffstat:
sys/arch/arm/arm32/cortex_pmc.c | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
diffs (27 lines):
diff -r d0a9a356d86e -r 6a6ae03fd43a sys/arch/arm/arm32/cortex_pmc.c
--- a/sys/arch/arm/arm32/cortex_pmc.c Wed Aug 12 21:56:27 2015 +0000
+++ b/sys/arch/arm/arm32/cortex_pmc.c Thu Aug 13 02:25:07 2015 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: cortex_pmc.c,v 1.3 2015/02/08 13:51:23 skrll Exp $ */
+/* $NetBSD: cortex_pmc.c,v 1.4 2015/08/13 02:25:07 knakahara Exp $ */
/* Copyright (c) 2007 Microsoft
* All rights reserved.
@@ -35,7 +35,7 @@
*/
#include <sys/cdefs.h>
-/* __KERNEL_RCSID(0, "$NetBSD: cortex_pmc.c,v 1.3 2015/02/08 13:51:23 skrll Exp $"); */
+/* __KERNEL_RCSID(0, "$NetBSD: cortex_pmc.c,v 1.4 2015/08/13 02:25:07 knakahara Exp $"); */
#include "opt_perfctrs.h"
#include <sys/types.h>
#include <sys/param.h>
@@ -103,7 +103,7 @@
if (ctrl & CORTEX_CNTOFL_C) {
/* Reset overflow flag for cycle counter in overflow register */
armreg_pmovsr_write(CORTEX_CNTOFL_C);
- delta += (last + (counts_per_wrap - cur));
+ delta += (cur + (counts_per_wrap - last));
} else {
delta += (cur - last);
}
Home |
Main Index |
Thread Index |
Old Index