On Fri, Feb 09, 2024 at 09:28:52AM -0600, Moger, Babu wrote: > > + if (id < 0) { > > + pr_warn_once("Can't find domain id for CPU:%d scope:%d for resource %s\n", > > + cpu, r->scope, r->name); > > Will it be good to move pr_warn_once inside get_domain_id_from_scope > instead of repeating during every call? Yes. Will move from here to get_domain_id_from_scope(). > > + if (id < 0) { > > + pr_warn_once("Can't find domain id for CPU:%d scope:%d for resource %s\n", > > + cpu, r->scope, r->name); > > Same comment as above. Will it be good to move pr_warn_once inside > get_domain_id_from_scope ? Moved this one too. Thanks -Tony