platform/x86/amd/pmf: Add helper routine to check pprof is balanced
authorShyam Sundar S K <Shyam-sundar.S-k@amd.com>
Wed, 25 Jan 2023 09:59:33 +0000 (15:29 +0530)
committerHans de Goede <hdegoede@redhat.com>
Mon, 30 Jan 2023 13:30:57 +0000 (14:30 +0100)
commit16909aa8c9cc284085f1202c6403ecb9814af812
treee097c80a42b64df4201f9c410cd6b1238c9073f4
parentc5258d39fc4cbed37e20945715e7eb102f26d65b
platform/x86/amd/pmf: Add helper routine to check pprof is balanced

Add helper routine to check if the current platform profile
is balanced mode and remove duplicate code occurrences.

Signed-off-by: Shyam Sundar S K <Shyam-sundar.S-k@amd.com>
Reviewed-by: Mario Limonciello <mario.limonciello@amd.com>
Link: https://lore.kernel.org/r/20230125095936.3292883-3-Shyam-sundar.S-k@amd.com
Reviewed-by: Hans de Goede <hdegoede@redhat.com>
Signed-off-by: Hans de Goede <hdegoede@redhat.com>
drivers/platform/x86/amd/pmf/cnqf.c
drivers/platform/x86/amd/pmf/pmf.h
drivers/platform/x86/amd/pmf/sps.c