mirror of
https://github.com/AsahiLinux/m1n1
synced 2024-11-27 08:50:17 +00:00
hv_exc: Disable stolen time accounting
This doesn't work with SMP. Signed-off-by: Hector Martin <marcan@marcan.st>
This commit is contained in:
parent
509481d5d5
commit
09a44e5a92
1 changed files with 4 additions and 0 deletions
|
@ -9,6 +9,8 @@
|
|||
#include "uart.h"
|
||||
#include "uartproxy.h"
|
||||
|
||||
//#define TIME_ACCOUNTING
|
||||
|
||||
extern spinlock_t bhl;
|
||||
|
||||
#define _SYSREG_ISS(_1, _2, op0, op1, CRn, CRm, op2) \
|
||||
|
@ -227,9 +229,11 @@ static void hv_exc_exit(u64 *regs)
|
|||
hv_update_fiq();
|
||||
/* reenable PMU counters */
|
||||
reg_set(SYS_IMP_APL_PMCR0, PERCPU(exc_entry_pmcr0_cnt));
|
||||
#ifdef TIME_ACCOUNTING
|
||||
u64 lost = mrs(CNTPCT_EL0) - exc_entry_time;
|
||||
if (lost > 8)
|
||||
stolen_time += lost - 8;
|
||||
#endif
|
||||
msr(CNTVOFF_EL2, stolen_time);
|
||||
spin_unlock(&bhl);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue