Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 2e840e1d authored by Jordan Crouse's avatar Jordan Crouse
Browse files

PM / devfreq: Fix CONFIG check for cache HW monitor prototype



Commit 2094bed7 ("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: default avatarJordan Crouse <jcrouse@codeaurora.org>
parent d54e1fcb
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
/* 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);
+2 −2
Original line number Diff line number Diff line
/* 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