sps.c (c5258d39fc4cbed37e20945715e7eb102f26d65b) | sps.c (16909aa8c9cc284085f1202c6403ecb9814af812) |
---|---|
1// SPDX-License-Identifier: GPL-2.0 2/* 3 * AMD Platform Management Framework (PMF) Driver 4 * 5 * Copyright (c) 2022, Advanced Micro Devices, Inc. 6 * All Rights Reserved. 7 * 8 * Author: Shyam Sundar S K <Shyam-sundar.S-k@amd.com> --- 69 unchanged lines hidden (view full) --- 78 if (mode < 0) 79 return mode; 80 81 amd_pmf_update_slider(pmf, SLIDER_OP_SET, mode, NULL); 82 83 return 0; 84} 85 | 1// SPDX-License-Identifier: GPL-2.0 2/* 3 * AMD Platform Management Framework (PMF) Driver 4 * 5 * Copyright (c) 2022, Advanced Micro Devices, Inc. 6 * All Rights Reserved. 7 * 8 * Author: Shyam Sundar S K <Shyam-sundar.S-k@amd.com> --- 69 unchanged lines hidden (view full) --- 78 if (mode < 0) 79 return mode; 80 81 amd_pmf_update_slider(pmf, SLIDER_OP_SET, mode, NULL); 82 83 return 0; 84} 85 |
86bool is_pprof_balanced(struct amd_pmf_dev *pmf) 87{ 88 return (pmf->current_profile == PLATFORM_PROFILE_BALANCED) ? true : false; 89} 90 |
|
86static int amd_pmf_profile_get(struct platform_profile_handler *pprof, 87 enum platform_profile_option *profile) 88{ 89 struct amd_pmf_dev *pmf = container_of(pprof, struct amd_pmf_dev, pprof); 90 91 *profile = pmf->current_profile; 92 return 0; 93} --- 61 unchanged lines hidden --- | 91static int amd_pmf_profile_get(struct platform_profile_handler *pprof, 92 enum platform_profile_option *profile) 93{ 94 struct amd_pmf_dev *pmf = container_of(pprof, struct amd_pmf_dev, pprof); 95 96 *profile = pmf->current_profile; 97 return 0; 98} --- 61 unchanged lines hidden --- |