platform/x86/amd: pmc: Add helper function to check the cpu id
authorShyam Sundar S K <Shyam-sundar.S-k@amd.com>
Thu, 25 May 2023 14:19:28 +0000 (19:49 +0530)
committerHans de Goede <hdegoede@redhat.com>
Tue, 30 May 2023 09:08:19 +0000 (11:08 +0200)
commit5d50eef380b21eb71894797b344cff0b56059580
tree3673bbc28c62c807372b1c75efac97116ee87a45
parentbe8325fb3d8ca1b0148b4cb765ef196dcb2d9192
platform/x86/amd: pmc: Add helper function to check the cpu id

Add a helper routine to check the underlying cpu id, that can be used
across the PMC driver to remove the duplicate code.

Co-developed-by: Sanket Goswami <Sanket.Goswami@amd.com>
Signed-off-by: Sanket Goswami <Sanket.Goswami@amd.com>
Signed-off-by: Shyam Sundar S K <Shyam-sundar.S-k@amd.com>
Reviewed-by: Ilpo Järvinen <ilpo.jarvinen@linux.intel.com>
Link: https://lore.kernel.org/r/20230525141929.866385-4-Shyam-sundar.S-k@amd.com
Signed-off-by: Hans de Goede <hdegoede@redhat.com>
drivers/platform/x86/amd/pmc.c