Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/arch/arm/cortex Avoid unnecessarily touching CNTP_CTL.
details: https://anonhg.NetBSD.org/src/rev/e469f115c1f1
branches: trunk
changeset: 319737:e469f115c1f1
user: jakllsch <jakllsch%NetBSD.org@localhost>
date: Sat Jun 09 01:17:35 2018 +0000
description:
Avoid unnecessarily touching CNTP_CTL.
We may not have the privilege of accessing CNTP_CTL if running as a
virtualized guest, and we're not using the Physical Timer for interupt
generation anyway.
diffstat:
sys/arch/arm/cortex/gtmr.c | 6 ++----
1 files changed, 2 insertions(+), 4 deletions(-)
diffs (34 lines):
diff -r 958bd217a0a0 -r e469f115c1f1 sys/arch/arm/cortex/gtmr.c
--- a/sys/arch/arm/cortex/gtmr.c Fri Jun 08 23:40:44 2018 +0000
+++ b/sys/arch/arm/cortex/gtmr.c Sat Jun 09 01:17:35 2018 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: gtmr.c,v 1.28 2018/05/21 10:28:13 jmcneill Exp $ */
+/* $NetBSD: gtmr.c,v 1.29 2018/06/09 01:17:35 jakllsch Exp $ */
/*-
* Copyright (c) 2012 The NetBSD Foundation, Inc.
@@ -30,7 +30,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: gtmr.c,v 1.28 2018/05/21 10:28:13 jmcneill Exp $");
+__KERNEL_RCSID(0, "$NetBSD: gtmr.c,v 1.29 2018/06/09 01:17:35 jakllsch Exp $");
#include <sys/param.h>
#include <sys/bus.h>
@@ -206,7 +206,6 @@
/* Disable the timer until we are ready */
gtmr_cntv_ctl_write(0);
- gtmr_cntp_ctl_write(0);
}
void
@@ -222,7 +221,6 @@
* enable timer and stop masking the timer.
*/
gtmr_cntv_ctl_write(CNTCTL_ENABLE);
- gtmr_cntp_ctl_write(CNTCTL_ENABLE);
/*
* Get now and update the compare timer.
Home |
Main Index |
Thread Index |
Old Index