Page MenuHomeFreeBSD

D49263.diff
No OneTemporary

D49263.diff

diff --git a/sys/arm/arm/generic_timer.c b/sys/arm/arm/generic_timer.c
--- a/sys/arm/arm/generic_timer.c
+++ b/sys/arm/arm/generic_timer.c
@@ -153,8 +153,6 @@
},
};
-static uint64_t get_cntxct(bool);
-
static int arm_tmr_attach(device_t);
static uint32_t arm_tmr_fill_vdso_timehands(struct vdso_timehands *vdso_th,
@@ -195,6 +193,19 @@
return (get_el0(cntfrq));
}
+static uint64_t
+get_cntxct(bool physical)
+{
+ uint64_t val;
+
+ if (physical)
+ val = get_el0(cntpct);
+ else
+ val = get_el0(cntvct);
+
+ return (val);
+}
+
#ifdef FDT
static uint64_t
get_cntxct_a64_unstable(bool physical)
@@ -209,19 +220,6 @@
}
#endif
-static uint64_t
-get_cntxct(bool physical)
-{
- uint64_t val;
-
- if (physical)
- val = get_el0(cntpct);
- else
- val = get_el0(cntvct);
-
- return (val);
-}
-
static int
set_ctrl(uint32_t val, bool physical)
{

File Metadata

Mime Type
text/plain
Expires
Fri, Mar 21, 4:04 AM (13 h, 57 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
17036331
Default Alt Text
D49263.diff (862 B)

Event Timeline