soc: rockchip: system-monitor: Add support to be built as module

Signed-off-by: Finley Xiao <finley.xiao@rock-chips.com>
Change-Id: If59392732efe0dc1cb20e49115a1a1f65854bd7a
This commit is contained in:
Finley Xiao
2020-07-14 19:22:24 +08:00
committed by Tao Huang
parent f417ab1184
commit 1890971d65
3 changed files with 3 additions and 3 deletions

View File

@@ -91,7 +91,7 @@ config ROCKCHIP_SUSPEND_MODE
Say Y here if you want to set the suspend mode to the ATF.
config ROCKCHIP_SYSTEM_MONITOR
bool "Rockchip system monitor support"
tristate "Rockchip system monitor support"
default y
help
Say y here to enable rockchip system monitor support.

View File

@@ -6,7 +6,7 @@
#ifndef __SOC_ROCKCHIP_SYSTEM_STATUS_H
#define __SOC_ROCKCHIP_SYSTEM_STATUS_H
#ifdef CONFIG_ROCKCHIP_SYSTEM_MONITOR
#if IS_ENABLED(CONFIG_ROCKCHIP_SYSTEM_MONITOR)
int rockchip_register_system_status_notifier(struct notifier_block *nb);
int rockchip_unregister_system_status_notifier(struct notifier_block *nb);
void rockchip_set_system_status(unsigned long status);

View File

@@ -113,7 +113,7 @@ struct monitor_dev_profile {
struct cpumask allowed_cpus;
};
#ifdef CONFIG_ROCKCHIP_SYSTEM_MONITOR
#if IS_ENABLED(CONFIG_ROCKCHIP_SYSTEM_MONITOR)
struct monitor_dev_info *
rockchip_system_monitor_register(struct device *dev,
struct monitor_dev_profile *devp);