x86/resctrl: Move per RDT domain initialization to a separate function
authorXiaochen Shen <xiaochen.shen@intel.com>
Wed, 17 Apr 2019 11:08:48 +0000 (19:08 +0800)
committerBorislav Petkov <bp@suse.de>
Wed, 17 Apr 2019 21:59:56 +0000 (23:59 +0200)
commit7390619ab9ea9fd0ba9f4c3e4749ee20262cba7d
treeab434bf6d261d65e11f20d5a8b09d3b67a61a6c0
parent1bddcc645f9b3d81adaf08d86289ebd733affc86
x86/resctrl: Move per RDT domain initialization to a separate function

Carve out per rdt_domain initialization code from rdtgroup_init_alloc()
into a separate function.

No functional change, make the code more readable and save us at least
two indentation levels.

Signed-off-by: Xiaochen Shen <xiaochen.shen@intel.com>
Signed-off-by: Borislav Petkov <bp@suse.de>
Cc: Fenghua Yu <fenghua.yu@intel.com>
Cc: "H. Peter Anvin" <hpa@zytor.com>
Cc: Ingo Molnar <mingo@redhat.com>
Cc: pei.p.jia@intel.com
Cc: Reinette Chatre <reinette.chatre@intel.com>
Cc: Thomas Gleixner <tglx@linutronix.de>
Cc: Tony Luck <tony.luck@intel.com>
Cc: x86-ml <x86@kernel.org>
Link: https://lkml.kernel.org/r/1555499329-1170-2-git-send-email-xiaochen.shen@intel.com
arch/x86/kernel/cpu/resctrl/rdtgroup.c