clocksource: migrate users of arch_get_cnt_pct to use virtual timers
Software running in non secure EL1(on arm64) and non secure supervisor mode(on arm) should use virtual timer for time stamping. Migrate users to arch_get_cnt_vct instead of using arch_get_cnt_pct. Change-Id: Ic3cf52a2ca3b0a2f83b926df26cecf479080320c Signed-off-by: Abhimanyu Kapur <abhimany@codeaurora.org>
This commit is contained in:
parent
f3da36d72d
commit
68696605ff
2 changed files with 3 additions and 3 deletions
|
@ -220,13 +220,13 @@ static int slpi_loader_remove(struct platform_device *pdev)
|
|||
}
|
||||
|
||||
/*
|
||||
* Read QTimer clock ticks and scale down to 32KHz clock as used
|
||||
* Read virtual QTimer clock ticks and scale down to 32KHz clock as used
|
||||
* in DSPS
|
||||
*/
|
||||
static u32 sns_read_qtimer(void)
|
||||
{
|
||||
u64 val;
|
||||
val = arch_counter_get_cntpct();
|
||||
val = arch_counter_get_cntvct();
|
||||
/*
|
||||
* To convert ticks from 19.2 Mhz clock to 32768 Hz clock:
|
||||
* x = (value * 32768) / 19200000
|
||||
|
|
|
@ -328,7 +328,7 @@ static void *memcpy_to_log(void *dest, const void *src, size_t num_bytes)
|
|||
|
||||
static inline unsigned int read_timestamp(void)
|
||||
{
|
||||
return (unsigned int)(arch_counter_get_cntpct());
|
||||
return (unsigned int)(arch_counter_get_cntvct());
|
||||
}
|
||||
|
||||
static void smem_log_event_from_user(struct smem_log_inst *inst,
|
||||
|
|
Loading…
Add table
Reference in a new issue