[v4,0/2] x86/resctrl: Pass domain to target CPU

Message ID 20240228112952.8090-tony.luck@intel.com
Headers
Series x86/resctrl: Pass domain to target CPU |

Message

Luck, Tony Feb. 28, 2024, 7:36 p.m. UTC
  When a function is called via IPI, it isn't possible for assertions
in source code to check that the right locks are held when those
locks were obtained by the sender of the IPI.

Restructure some code to avoid the need for the check.

Patch 1 has the actual fix

Patch 2 is just some code cleanups

Changes since V3: https://lore.kernel.org/all/20240222185039.72201-1-tony.luck@intel.com/

Reinette:
1) Improve commit comments in both patches by changing to
   imperative.

2) Move initialzation of "m.res" in domain_setup_ctrlval() from
   patch 1 to patch 2

Tony Luck (2):
  x86/resctrl: Pass domain to target CPU
  x86/resctrl: Simplify call convention for MSR update functions

 arch/x86/kernel/cpu/resctrl/internal.h    |  5 ++-
 arch/x86/kernel/cpu/resctrl/core.c        | 55 +++++++++--------------
 arch/x86/kernel/cpu/resctrl/ctrlmondata.c | 42 +++++------------
 arch/x86/kernel/cpu/resctrl/rdtgroup.c    | 14 ++----
 4 files changed, 38 insertions(+), 78 deletions(-)


base-commit: c0d848fcb09d80a5f48b99f85e448185125ef59f