Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F112584845
D49263.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
862 B
Referenced Files
None
Subscribers
None
D49263.diff
View Options
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
Details
Attached
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)
Attached To
Mode
D49263: arm: Reorder functions so get_cntxct is first
Attached
Detach File
Event Timeline
Log In to Comment