There are now several conditionals that control how the watchdog behaves. We have described these in terms cpu_is and machine_is macros. Instead, convert tunables to platform data so we can keep the driver clean. Additionally, since it is a platform device, we can now move the suspending code to the suspend_noirq function, which leaves the watchdog on for more of the suspend process. Change-Id: If47b3abbeeaa40f4e6f0f5d301d0a28efa8d3535 Signed-off-by: Jeff Ohlstein <johlstei@codeaurora.org>
31 lines
886 B
C
31 lines
886 B
C
/* Copyright (c) 2011, Code Aurora Forum. 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 __ARCH_ARM_MACH_MSM_MSM_WATCHDOG_H
|
|
#define __ARCH_ARM_MACH_MSM_MSM_WATCHDOG_H
|
|
|
|
struct msm_watchdog_pdata {
|
|
/* pet interval period in ms */
|
|
unsigned int pet_time;
|
|
/* bark timeout in ms */
|
|
unsigned int bark_time;
|
|
bool has_secure;
|
|
};
|
|
|
|
#ifdef CONFIG_MSM_WATCHDOG
|
|
void pet_watchdog(void);
|
|
#else
|
|
static inline void pet_watchdog(void) { }
|
|
#endif
|
|
|
|
#endif
|