File tree Expand file tree Collapse file tree 1 file changed +0
-18
lines changed
targets/TARGET_Samsung/TARGET_SIDK_S5JS100 Expand file tree Collapse file tree 1 file changed +0
-18
lines changed Original file line number Diff line number Diff line change 29
29
30
30
int nbsleep_req = 0 ;
31
31
int external_pin = 0 ;
32
- static int initialize_policy = 0 ;
33
32
static int disable_poweroffbycp = 1 ;
34
33
35
34
static inline void hw_delay_us (unsigned int value )
@@ -68,19 +67,6 @@ int s5js100_idle_sicd(void)
68
67
return 0 ;
69
68
}
70
69
71
- static void s5js100_idle_hook (void )
72
- {
73
- core_util_critical_section_enter ();
74
- sleep ();
75
- core_util_critical_section_exit ();
76
- }
77
-
78
- static void set_sleep_policy (void )
79
- {
80
- rtos_attach_idle_hook (& s5js100_idle_hook );
81
- initialize_policy = 1 ;
82
- }
83
-
84
70
void config_poweroffbycp (int enable )
85
71
{
86
72
disable_poweroffbycp = (enable == 0 ) ? 1 : 0 ;
@@ -119,10 +105,6 @@ static int change_cp_pwr_lock(int lock)
119
105
120
106
void hal_sleep (void )
121
107
{
122
- if (initialize_policy == 0 ) {
123
- set_sleep_policy ();
124
- }
125
-
126
108
if (!strcmp (get_env ("SLEEP" ), "ON" ) && disable_poweroffbycp != 1 ) {
127
109
hal_deepsleep ();
128
110
return ;
You can’t perform that action at this time.
0 commit comments