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 2929
3030int nbsleep_req = 0 ;
3131int external_pin = 0 ;
32- static int initialize_policy = 0 ;
3332static int disable_poweroffbycp = 1 ;
3433
3534static inline void hw_delay_us (unsigned int value )
@@ -68,19 +67,6 @@ int s5js100_idle_sicd(void)
6867 return 0 ;
6968}
7069
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-
8470void config_poweroffbycp (int enable )
8571{
8672 disable_poweroffbycp = (enable == 0 ) ? 1 : 0 ;
@@ -119,10 +105,6 @@ static int change_cp_pwr_lock(int lock)
119105
120106void hal_sleep (void )
121107{
122- if (initialize_policy == 0 ) {
123- set_sleep_policy ();
124- }
125-
126108 if (!strcmp (get_env ("SLEEP" ), "ON" ) && disable_poweroffbycp != 1 ) {
127109 hal_deepsleep ();
128110 return ;
You can’t perform that action at this time.
0 commit comments