|
@@ -462,7 +462,10 @@ static void __init arch_counter_register(unsigned type)
|
|
|
|
|
|
/* Register the CP15 based counter if we have one */
|
|
|
if (type & ARCH_CP15_TIMER) {
|
|
|
- arch_timer_read_counter = arch_counter_get_cntvct;
|
|
|
+ if (arch_timer_use_virtual)
|
|
|
+ arch_timer_read_counter = arch_counter_get_cntvct;
|
|
|
+ else
|
|
|
+ arch_timer_read_counter = arch_counter_get_cntpct;
|
|
|
} else {
|
|
|
arch_timer_read_counter = arch_counter_get_cntvct_mem;
|
|
|
|