mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2024-11-24 17:50:54 +07:00
11e1a16482
The list_kref was added for static OPPs and to track their users. The
kref is initialized while the static OPPs are added, but removed
unconditionally even if the static OPPs were never added. This causes
refcount mismatch warnings currently.
Fix that by always initializing the kref when the OPP table is first
initialized. The refcount is later incremented only for the second user
onwards.
Fixes:
|
||
---|---|---|
.. | ||
core.c | ||
cpu.c | ||
debugfs.c | ||
Kconfig | ||
Makefile | ||
of.c | ||
opp.h | ||
ti-opp-supply.c |