]> www.infradead.org Git - users/jedix/linux-maple.git/commit
ACPI: CPPC: Drop check for non zero perf ratio
authorMario Limonciello <mario.limonciello@amd.com>
Tue, 27 Aug 2024 18:50:45 +0000 (13:50 -0500)
committerMario Limonciello <mario.limonciello@amd.com>
Wed, 11 Sep 2024 15:23:22 +0000 (10:23 -0500)
commit3355ac2541052154b6ca0b1263be5bf49dfa0158
treee7c9bfe5d149927944094b538547f6f5b5dda10f
parent6c09e3b445a1a647a5b57ea6afd23e846225dd8f
ACPI: CPPC: Drop check for non zero perf ratio

perf_ratio is a u64 and SCHED_CAPACITY_SCALE is a large number.
Shifting by one will never have a zero value.

Drop the check.

Suggested-by: Gautham R. Shenoy <gautham.shenoy@amd.com>
Reviewed-by: Gautham R. Shenoy <gautham.sheoy@amd.com>
Signed-off-by: Mario Limonciello <mario.limonciello@amd.com>
arch/x86/kernel/acpi/cppc.c