mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-07 04:12:04 -04:00
PM / devfreq: Fix CONFIG check for cache HW monitor prototype
Commit 2094bed752 ("PM / devfreq: Add cache HW monitor governor") brought
in the cache HW monitor with an incorrect check for
CONFIG_DEVFREQ_GOV_QCOM_CACHE_HWMON that fails when the governor is
built as a module.
Change-Id: Ic0dedbadefc4885486660d32226e6dd89e006a11
Signed-off-by: Jordan Crouse <jcrouse@codeaurora.org>
This commit is contained in:
parent
d54e1fcbed
commit
2e840e1daf
2 changed files with 4 additions and 4 deletions
|
|
@ -1,6 +1,6 @@
|
|||
/* SPDX-License-Identifier: GPL-2.0-only */
|
||||
/*
|
||||
* Copyright (c) 2014-2016, 2019, The Linux Foundation. All rights reserved.
|
||||
* Copyright (c) 2014-2016, 2019-2020, The Linux Foundation. All rights reserved.
|
||||
*/
|
||||
|
||||
#ifndef _GOVERNOR_BW_HWMON_H
|
||||
|
|
@ -58,7 +58,7 @@ struct bw_hwmon {
|
|||
struct devfreq *df;
|
||||
};
|
||||
|
||||
#ifdef CONFIG_DEVFREQ_GOV_QCOM_BW_HWMON
|
||||
#if IS_ENABLED(CONFIG_DEVFREQ_GOV_QCOM_BW_HWMON)
|
||||
int register_bw_hwmon(struct device *dev, struct bw_hwmon *hwmon);
|
||||
int update_bw_hwmon(struct bw_hwmon *hwmon);
|
||||
int bw_hwmon_sample_end(struct bw_hwmon *hwmon);
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
/* SPDX-License-Identifier: GPL-2.0-only */
|
||||
/*
|
||||
* Copyright (c) 2014, 2016, 2019, The Linux Foundation. All rights reserved.
|
||||
* Copyright (c) 2014, 2016, 2019-2020, The Linux Foundation. All rights reserved.
|
||||
*/
|
||||
|
||||
#ifndef _GOVERNOR_CACHE_HWMON_H
|
||||
|
|
@ -46,7 +46,7 @@ struct cache_hwmon {
|
|||
struct devfreq *df;
|
||||
};
|
||||
|
||||
#ifdef CONFIG_DEVFREQ_GOV_QCOM_CACHE_HWMON
|
||||
#if IS_ENABLED(CONFIG_DEVFREQ_GOV_QCOM_CACHE_HWMON)
|
||||
int register_cache_hwmon(struct device *dev, struct cache_hwmon *hwmon);
|
||||
int update_cache_hwmon(struct cache_hwmon *hwmon);
|
||||
#else
|
||||
|
|
|
|||
Loading…
Reference in a new issue