On Fri, 2024-08-30 at 09:40 -0700, Haitao Huang wrote: > From: Kristen Carlson Accardi <kris...@linux.intel.com> > > The misc cgroup controller (subsystem) currently does not perform > resource type specific action for Cgroups Subsystem State (CSS) events: > the 'css_alloc' event when a cgroup is created and the 'css_free' event > when a cgroup is destroyed. > > Define callbacks for those events and allow resource providers to > register the callbacks per resource type as needed. This will be > utilized later by the EPC misc cgroup support implemented in the SGX > driver. > > The SGX callbacks will need to access the 'struct misc_cg'. Pass > 'struct misc_cg' to the callbacks but not the 'struct misc_res' because > the latter doesn't have a pointer pointing back to 'struct misc_cg'. > > Link: > https://lore.kernel.org/lkml/op.2kdw36otwjv...@hhuan26-mobl.amr.corp.intel.com/ > > Signed-off-by: Kristen Carlson Accardi <kris...@linux.intel.com> > Co-developed-by: Haitao Huang <haitao.hu...@linux.intel.com> > Signed-off-by: Haitao Huang <haitao.hu...@linux.intel.com> > Reviewed-by: Jarkko Sakkinen <jar...@kernel.org> > Reviewed-by: Tejun Heo <t...@kernel.org> > Tested-by: Jarkko Sakkinen <jar...@kernel.org> > --- >
Acked-by: Kai Huang <kai.hu...@intel.com>