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:
Jordan Crouse 2019-12-05 12:25:07 -07:00
commit 2e840e1daf
2 changed files with 4 additions and 4 deletions

View file

@ -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);

View file

@ -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