On Fri, Apr 02, 2021 at 01:10:51PM +0200, Daniel Lezcano wrote: > >> To answer your questions, there is a SoC vendor thermal daemon using > >> DTPM and there is a tool created to watch the thermal framework and read > >> the DTPM values, it is available at [4]. It is currently under > >> development with the goal of doing power rebalancing / capping across > >> the different nodes when there is a violation of the parent's power limit. > > > > Crazy ideas aside, your implementation of this is my main objection > > here. You are creating a user/kernel api that you will have to support > > for 20+ years, without a real userspace user just yet (from what I can > > tell). That's rough, and is going to mean that this gets messy over > > time. > > I'm not sure to understand, the API already exists since v3.3, it is the > powercap and DTPM is its backend. AFAICT, there are already users of it > except they create their own way to build the hierarchy today.
The configfs api is what I am referring to here, the ones in this patch series... thanks, greg k-h