mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2024-12-28 11:18:45 +07:00
d5e205079c
rpmh_flush() was exported with the idea that an external entity operation during CPU idle would know when to flush the sleep and wake TCS. Since, this is not the case when defining a power domain for the RSC. Remove the function export and instead allow the function to be called internally. Signed-off-by: Maulik Shah <mkshah@codeaurora.org> Reviewed-by: Stephen Boyd <swboyd@chromium.org> Link: https://lore.kernel.org/r/1580736940-6985-3-git-send-email-mkshah@codeaurora.org Signed-off-by: Bjorn Andersson <bjorn.andersson@linaro.org>
47 lines
1.2 KiB
C
47 lines
1.2 KiB
C
/* SPDX-License-Identifier: GPL-2.0 */
|
|
/*
|
|
* Copyright (c) 2016-2018, The Linux Foundation. All rights reserved.
|
|
*/
|
|
|
|
#ifndef __SOC_QCOM_RPMH_H__
|
|
#define __SOC_QCOM_RPMH_H__
|
|
|
|
#include <soc/qcom/tcs.h>
|
|
#include <linux/platform_device.h>
|
|
|
|
|
|
#if IS_ENABLED(CONFIG_QCOM_RPMH)
|
|
int rpmh_write(const struct device *dev, enum rpmh_state state,
|
|
const struct tcs_cmd *cmd, u32 n);
|
|
|
|
int rpmh_write_async(const struct device *dev, enum rpmh_state state,
|
|
const struct tcs_cmd *cmd, u32 n);
|
|
|
|
int rpmh_write_batch(const struct device *dev, enum rpmh_state state,
|
|
const struct tcs_cmd *cmd, u32 *n);
|
|
|
|
int rpmh_invalidate(const struct device *dev);
|
|
|
|
#else
|
|
|
|
static inline int rpmh_write(const struct device *dev, enum rpmh_state state,
|
|
const struct tcs_cmd *cmd, u32 n)
|
|
{ return -ENODEV; }
|
|
|
|
static inline int rpmh_write_async(const struct device *dev,
|
|
enum rpmh_state state,
|
|
const struct tcs_cmd *cmd, u32 n)
|
|
{ return -ENODEV; }
|
|
|
|
static inline int rpmh_write_batch(const struct device *dev,
|
|
enum rpmh_state state,
|
|
const struct tcs_cmd *cmd, u32 *n)
|
|
{ return -ENODEV; }
|
|
|
|
static inline int rpmh_invalidate(const struct device *dev)
|
|
{ return -ENODEV; }
|
|
|
|
#endif /* CONFIG_QCOM_RPMH */
|
|
|
|
#endif /* __SOC_QCOM_RPMH_H__ */
|