diff options
| author | Prabhakar Pujeri <[email protected]> | 2024-06-26 13:09:40 +0000 |
|---|---|---|
| committer | Rafael J. Wysocki <[email protected]> | 2024-07-02 19:01:08 +0000 |
| commit | 86932cd8ccd4add4ddb3e894a0c4471aab8233c2 (patch) | |
| tree | 2d8e82c4c4277f0ad1d835113c3fedbc45d70ae0 /drivers/acpi/cppc_acpi.c | |
| parent | ACPI: CPPC: add sysfs entry for guaranteed performance (diff) | |
| download | kernel-86932cd8ccd4add4ddb3e894a0c4471aab8233c2.tar.gz kernel-86932cd8ccd4add4ddb3e894a0c4471aab8233c2.zip | |
ACPI: CPPC: Replace ternary operator with umax()
Replace ternary operator with umax() in cppc_find_dmi_mhz().
Signed-off-by: Prabhakar Pujeri <[email protected]>
[ rjw: Subject and changelog edits ]
Link: https://patch.msgid.link/[email protected]
Signed-off-by: Rafael J. Wysocki <[email protected]>
Diffstat (limited to 'drivers/acpi/cppc_acpi.c')
| -rw-r--r-- | drivers/acpi/cppc_acpi.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/acpi/cppc_acpi.c b/drivers/acpi/cppc_acpi.c index 9976bb57356e..dd3d3082c8c7 100644 --- a/drivers/acpi/cppc_acpi.c +++ b/drivers/acpi/cppc_acpi.c @@ -1839,7 +1839,7 @@ static void cppc_find_dmi_mhz(const struct dmi_header *dm, void *private) dm->length >= DMI_ENTRY_PROCESSOR_MIN_LENGTH) { u16 val = (u16)get_unaligned((const u16 *) (dmi_data + DMI_PROCESSOR_MAX_SPEED)); - *mhz = val > *mhz ? val : *mhz; + *mhz = umax(val, *mhz); } } |
