summaryrefslogtreecommitdiff
path: root/scripts/Makefile.thinlto
diff options
context:
space:
mode:
authorAlison Schofield <alison.schofield@intel.com>2026-11-02 12:16:01 -0800
committerDave Jiang <dave.jiang@intel.com>2026-11-02 13:43:25 -0700
commite2720e46d4ed7a3132a6792b31a61275ad54d533 (patch)
tree1c636d20a92c3528d887671aa652e43265c47c77 /scripts/Makefile.thinlto
parent96a2f5773a2798744957e97804ee2593f0cf82d2 (diff)
downloadlinux-next-e2720e46d4ed7a3132a6792b31a61275ad54d533.tar.gz
linux-next-e2720e46d4ed7a3132a6792b31a61275ad54d533.zip
cxl/region: Factor out cxl_port_calc_interleave()
cxl_switch_port_setup_targets() calculates the interleave ways and granularity of a port's decoder from the parent interleave and the number of targets below the port, then validates the result. That calculation and its checks are open coded between the target search and the decoder setup. Move the calculation and its checks to a new helper, cxl_port_calc_interleave(), so that the interleave for the port's decoder is calculated and validated in one place. No functional change. Signed-off-by: Alison Schofield <alison.schofield@intel.com> Reviewed-by: Dave Jiang <dave.jiang@intel.com> Reviewed-by: Jonathan Cameron <jonathan.cameron@oss.qualcomm.com> Reviewed-by: Richard Cheng <icheng@nvidia.com> Reviewed-by: Li Ming <ming.li@zohomail.com> Link: https://patch.msgid.link/cefd25ee5b9d600779a2dac442bd02110f571ff2.1793649898.git.alison.schofield@intel.com Signed-off-by: Dave Jiang <dave.jiang@intel.com>
Diffstat (limited to 'scripts/Makefile.thinlto')
0 files changed, 0 insertions, 0 deletions