mirror of
https://github.com/hardkernel/linux.git
synced 2026-03-29 05:50:28 +09:00
Create a flag that stores information about the completion of topology
initialization. This information is needed by Qualcomm's WALT scheduler
vendor module.
Usually the WALT module waits on the tracehook callback to initialize
its topology internal state. However in situations when the insertion of
the module happens after update_topology_flags_workfn(), the module needs
to be told that it was late in being inserted i.e. the tracehook was run
long before it was inserted.
The module pseudo code would be
walt_init()
{
if already initialited
exit
else
proceed with initialization
}
hook callback ()
{
walt_init()
}
probe()
{
register for update_topology_flag_workfn tracehook
if (topology_update_done)
walt_init()
}
This reverts commit b9bca6992d ("Revert "ANDROID: topology: Add flag
to indicate topology has been updated" ").
Change was originally reverted, bringing it back in.
Bug: 187234873
Signed-off-by: Sai Harshini Nimmala <quic_snimmala@quicinc.com>
Change-Id: I8e5366a660a2bf5b1d10f9cb0b0cf4f18286a043