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 Remove unused gtmr_bootdelay.



details:   https://anonhg.NetBSD.org/src/rev/6b4a39162032
branches:  trunk
changeset: 319042:6b4a39162032
user:      joerg <joerg%NetBSD.org@localhost>
date:      Mon May 14 17:09:41 2018 +0000
description:
Remove unused gtmr_bootdelay.

diffstat:

 sys/arch/arm/cortex/gtmr.c     |  21 ++-------------------
 sys/arch/arm/cortex/gtmr_var.h |   3 +--
 2 files changed, 3 insertions(+), 21 deletions(-)

diffs (59 lines):

diff -r c6823766b282 -r 6b4a39162032 sys/arch/arm/cortex/gtmr.c
--- a/sys/arch/arm/cortex/gtmr.c        Mon May 14 12:44:40 2018 +0000
+++ b/sys/arch/arm/cortex/gtmr.c        Mon May 14 17:09:41 2018 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: gtmr.c,v 1.24 2018/04/01 04:35:04 ryo Exp $    */
+/*     $NetBSD: gtmr.c,v 1.25 2018/05/14 17:09:41 joerg Exp $  */
 
 /*-
  * Copyright (c) 2012 The NetBSD Foundation, Inc.
@@ -30,7 +30,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: gtmr.c,v 1.24 2018/04/01 04:35:04 ryo Exp $");
+__KERNEL_RCSID(0, "$NetBSD: gtmr.c,v 1.25 2018/05/14 17:09:41 joerg Exp $");
 
 #include <sys/param.h>
 #include <sys/bus.h>
@@ -270,23 +270,6 @@
        }
 }
 
-void
-gtmr_bootdelay(unsigned int ticks)
-{
-       const uint32_t ctl = gtmr_cntv_ctl_read();
-       gtmr_cntv_ctl_write(ctl | CNTCTL_ENABLE | CNTCTL_IMASK);
-
-       /* Write Timer/Value to set new compare time */
-       gtmr_cntv_tval_write(ticks);
-
-       /* Spin until compare time is hit */
-       while ((gtmr_cntv_ctl_read() & CNTCTL_ISTATUS) == 0) {
-               /* spin */
-       }
-
-       gtmr_cntv_ctl_write(ctl);
-}
-
 /*
  * gtmr_intr:
  *
diff -r c6823766b282 -r 6b4a39162032 sys/arch/arm/cortex/gtmr_var.h
--- a/sys/arch/arm/cortex/gtmr_var.h    Mon May 14 12:44:40 2018 +0000
+++ b/sys/arch/arm/cortex/gtmr_var.h    Mon May 14 17:09:41 2018 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: gtmr_var.h,v 1.9 2017/11/30 14:50:34 skrll Exp $ */
+/* $NetBSD: gtmr_var.h,v 1.10 2018/05/14 17:09:41 joerg Exp $ */
 /*-
  * Copyright (c) 2013 The NetBSD Foundation, Inc.
  * All rights reserved.
@@ -51,7 +51,6 @@
 int    gtmr_intr(void *);
 void   gtmr_init_cpu_clock(struct cpu_info *);
 void   gtmr_delay(unsigned int n);
-void   gtmr_bootdelay(unsigned int n);
 #ifdef __HAVE_GENERIC_CPU_INITCLOCKS
 void   gtmr_cpu_initclocks(void);
 #else



Home | Main Index | Thread Index | Old Index