Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F160171066
D49262.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
653 B
Referenced Files
None
Subscribers
None
D49262.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,6 +153,8 @@
},
};
+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,
@@ -199,18 +201,9 @@
{
uint64_t val;
- if (physical) {
- do {
- val = get_el0(cntpct);
- }
- while (((val + 1) & 0x7FF) <= 1);
- }
- else {
- do {
- val = get_el0(cntvct);
- }
- while (((val + 1) & 0x7FF) <= 1);
- }
+ do {
+ val = get_cntxct(physical);
+ } while (((val + 1) & 0x7FF) <= 1);
return (val);
}
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Mon, Jun 22, 9:31 PM (5 h, 5 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
34213681
Default Alt Text
D49262.diff (653 B)
Attached To
Mode
D49262: arm: Have get_cntxct_a64_unstable use get_cntxct
Attached
Detach File
Event Timeline
Log In to Comment