From internal commit 2cdbac29f45d0a1599c157276c78de736d11bfb9. Signed-off-by: Mario Limonciello <mario.limonciello@amd.com>