aboutsummaryrefslogtreecommitdiffstats
path: root/scripts/gcc-plugins/sancov_plugin.c
diff options
context:
space:
mode:
authorHuacai Chen <[email protected]>2025-05-14 14:17:52 +0000
committerHuacai Chen <[email protected]>2025-05-14 14:17:52 +0000
commitceb9155d058a11242aa0572875c44e9713b1a2be (patch)
treee3931bb30e4148a0457fef67135a85abc214a045 /scripts/gcc-plugins/sancov_plugin.c
parentLoongArch: Move __arch_cpu_idle() to .cpuidle.text section (diff)
downloadkernel-ceb9155d058a11242aa0572875c44e9713b1a2be.tar.gz
kernel-ceb9155d058a11242aa0572875c44e9713b1a2be.zip
LoongArch: Save and restore CSR.CNTC for hibernation
Save and restore CSR.CNTC for hibernation which is similar to suspend. For host this is unnecessary because sched clock is ensured continuous, but for kvm guest sched clock isn't enough because rdtime.d should also be continuous. Host::rdtime.d = Host::CSR.CNTC + counter Guest::rdtime.d = Host::CSR.CNTC + Host::CSR.GCNTC + Guest::CSR.CNTC + counter so, Guest::rdtime.d = Host::rdtime.d + Host::CSR.GCNTC + Guest::CSR.CNTC To ensure Guest::rdtime.d continuous, Host::rdtime.d should be at first continuous, while Host::CSR.GCNTC / Guest::CSR.CNTC is maintained by KVM. Cc: [email protected] Signed-off-by: Xianglai Li <[email protected]> Signed-off-by: Huacai Chen <[email protected]>
Diffstat (limited to 'scripts/gcc-plugins/sancov_plugin.c')
0 files changed, 0 insertions, 0 deletions