08 Feb, 2020

1 commit


29 Oct, 2019

1 commit

  • Fixes panic in time_cpufreq_notifier+0x94 caused by notifying the x86
    TSC synchronization code that a CPU frequency change has occurred, but
    not properly updating policy->cur beforehand, causing a division by
    zero.

    Link: https://github.com/ClangBuiltLinux/linux/issues/756
    Change-Id: I687093bbdb402a13341762bf9d91dd7f9daffe8b
    Signed-off-by: Alistair Delva

    Alistair Delva
     

26 Oct, 2019

1 commit

  • /proc/uid_time_in_state has no data on cuttlefish because its cpu
    frequency tables are empty. Because time in state & concurrent time
    accounting are intertwined this causes the
    /proc/uid_concurrent_{policy,active}_time files to also not contain
    any data.

    Add a minimal, fake cpufreq driver that creates a freq table with 2
    frequencies per policy, to allow testing time in state functionality.

    Test: all 3 proc files show reasonable data on cuttlefish
    Test: log shows no errors from bad /proc/uid_time_in_state format
    Bug: 139763108
    Bug: 140796321
    Bug: 141206930
    Change-Id: I8c7fe1007a80c21a9bcba9455bf837947cf42963
    Signed-off-by: Connor O'Brien

    Connor O'Brien