File tree Expand file tree Collapse file tree 2 files changed +4
-0
lines changed Expand file tree Collapse file tree 2 files changed +4
-0
lines changed Original file line number Diff line number Diff line change @@ -58,6 +58,7 @@ struct arch_timer_erratum_workaround {
58
58
u64 (* read_cntvct_el0 )(void );
59
59
int (* set_next_event_phys )(unsigned long , struct clock_event_device * );
60
60
int (* set_next_event_virt )(unsigned long , struct clock_event_device * );
61
+ bool disable_compat_vdso ;
61
62
};
62
63
63
64
DECLARE_PER_CPU (const struct arch_timer_erratum_workaround * ,
Original file line number Diff line number Diff line change @@ -566,6 +566,9 @@ void arch_timer_enable_workaround(const struct arch_timer_erratum_workaround *wa
566
566
if (wa -> read_cntvct_el0 ) {
567
567
clocksource_counter .vdso_clock_mode = VDSO_CLOCKMODE_NONE ;
568
568
vdso_default = VDSO_CLOCKMODE_NONE ;
569
+ } else if (wa -> disable_compat_vdso && vdso_default != VDSO_CLOCKMODE_NONE ) {
570
+ vdso_default = VDSO_CLOCKMODE_ARCHTIMER_NOCOMPAT ;
571
+ clocksource_counter .vdso_clock_mode = vdso_default ;
569
572
}
570
573
}
571
574
You can’t perform that action at this time.
0 commit comments