Merge pull request #13978 from LDong-Arm/remove_s5js100_idle_hook

S5JS100: remove idle hook in favour of Mbed-default idle hook
pull/13995/head
Martin Kojtal 2020-12-07 09:08:38 +00:00 committed by GitHub
commit 50e0981be3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 0 additions and 18 deletions

View File

@ -29,7 +29,6 @@
int nbsleep_req = 0;
int external_pin = 0;
static int initialize_policy = 0;
static int disable_poweroffbycp = 1;
static inline void hw_delay_us(unsigned int value)
@ -68,19 +67,6 @@ int s5js100_idle_sicd(void)
return 0;
}
static void s5js100_idle_hook(void)
{
core_util_critical_section_enter();
sleep();
core_util_critical_section_exit();
}
static void set_sleep_policy(void)
{
rtos_attach_idle_hook(&s5js100_idle_hook);
initialize_policy = 1;
}
void config_poweroffbycp(int enable)
{
disable_poweroffbycp = (enable == 0) ? 1 : 0;
@ -119,10 +105,6 @@ static int change_cp_pwr_lock(int lock)
void hal_sleep(void)
{
if (initialize_policy == 0) {
set_sleep_policy();
}
if (!strcmp(get_env("SLEEP"), "ON") && disable_poweroffbycp != 1) {
hal_deepsleep();
return;