PCI/PTM: Cache PTM Capability offset
authorBjorn Helgaas <bhelgaas@google.com>
Fri, 9 Sep 2022 20:24:57 +0000 (15:24 -0500)
committerBjorn Helgaas <bhelgaas@google.com>
Mon, 12 Sep 2022 20:28:43 +0000 (15:28 -0500)
commita47126ec29f538e1197862919f94d3b6668144a4
treefd36704f671fb0a5850457f26e1b1ce8d4546299
parent568035b01cfb107af8d2e4bd2fb9aea22cf5b868
PCI/PTM: Cache PTM Capability offset

Cache the PTM Capability offset instead of searching for it every time we
enable/disable PTM or save/restore PTM state.  No functional change
intended.

Link: https://lore.kernel.org/r/20220909202505.314195-2-helgaas@kernel.org
Tested-by: Rajvi Jingar <rajvi.jingar@linux.intel.com>
Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
Reviewed-by: Kuppuswamy Sathyanarayanan <sathyanarayanan.kuppuswamy@linux.intel.com>
Reviewed-by: Mika Westerberg <mika.westerberg@linux.intel.com>
drivers/pci/pcie/ptm.c
include/linux/pci.h