diff options
| author | Karthikeyan Ramasubramanian <kramasub@codeaurora.org> | 2016-02-11 16:08:06 -0700 |
|---|---|---|
| committer | David Keitel <dkeitel@codeaurora.org> | 2016-03-22 11:08:47 -0700 |
| commit | a8d687d1ee857d5b7c75dc94a2d905e2e09e387d (patch) | |
| tree | be36a491ae854fe80f12d5c196930eba43036af4 /include | |
| parent | 856dcc3bd832e290940440816a79371aa7e82e3c (diff) | |
soc: qcom: Add snapshot of System Health Monitor
This snapshot is taken as of msm-3.18 commit e70ad0cd (Promotion of
kernel.lnx.3.18-151201.)
Signed-off-by: Karthikeyan Ramasubramanian <kramasub@codeaurora.org>
Diffstat (limited to 'include')
| -rw-r--r-- | include/soc/qcom/system_health_monitor.h | 34 |
1 files changed, 34 insertions, 0 deletions
diff --git a/include/soc/qcom/system_health_monitor.h b/include/soc/qcom/system_health_monitor.h new file mode 100644 index 000000000000..5ce027cc4ae9 --- /dev/null +++ b/include/soc/qcom/system_health_monitor.h @@ -0,0 +1,34 @@ +/* Copyright (c) 2014, The Linux Foundation. All rights reserved. + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License version 2 and + * only version 2 as published by the Free Software Foundation. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + */ + +#ifndef SYSTEM_HEALTH_MONITOR_H +#define SYSTEM_HEALTH_MONITOR_H + +#ifdef CONFIG_SYSTEM_HEALTH_MONITOR +/** + * kern_check_system_health() - Check the system health + * + * This function is used by the kernel drivers to initiate the + * system health check. This function in turn trigger SHM to send + * QMI message to all the HMAs connected to it. + * + * Return: 0 on success, standard Linux error codes on failure. + */ +int kern_check_system_health(void); +#else +static inline int kern_check_system_health(void) +{ + return -ENODEV; +} +#endif /* CONFIG_SYSTEM_HEALTH_MONITOR */ + +#endif /* SYSTEM_HEALTH_MONITOR_H */ |
