Skip to content

Commit 7dd4297

Browse files
Flavio Ceolincfriedt
authored andcommitted
pm: Remove unused parameter
The number of ticks on z_pm_save_idle_exit is not used and there is no need to have it. Signed-off-by: Flavio Ceolin <[email protected]>
1 parent a4da640 commit 7dd4297

File tree

7 files changed

+5
-17
lines changed

7 files changed

+5
-17
lines changed

arch/arc/core/isr_wrapper.S

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -249,8 +249,6 @@ rirq_path:
249249
#if defined(CONFIG_PM)
250250
clri r0 /* do not interrupt exiting tickless idle operations */
251251
MOVR r1, _kernel
252-
/* z_kernel.idle is 32 bit despite of platform bittnes */
253-
ld_s r3, [r1, _kernel_offset_to_idle] /* requested idle duration */
254252
breq r3, 0, _skip_pm_save_idle_exit
255253

256254
st 0, [r1, _kernel_offset_to_idle] /* zero idle duration */

arch/arm/core/aarch32/irq_manage.c

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -181,10 +181,8 @@ void _arch_isr_direct_pm(void)
181181
#endif /* CONFIG_ARMV6_M_ARMV8_M_BASELINE */
182182

183183
if (_kernel.idle) {
184-
int32_t idle_val = _kernel.idle;
185-
186184
_kernel.idle = 0;
187-
z_pm_save_idle_exit(idle_val);
185+
z_pm_save_idle_exit();
188186
}
189187

190188
#if defined(CONFIG_ARMV6_M_ARMV8_M_BASELINE) \

arch/posix/core/swap.c

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -111,10 +111,8 @@ void arch_switch_to_main_thread(struct k_thread *main_thread, char *stack_ptr,
111111
void posix_irq_check_idle_exit(void)
112112
{
113113
if (_kernel.idle) {
114-
int32_t idle_val = _kernel.idle;
115-
116114
_kernel.idle = 0;
117-
z_pm_save_idle_exit(idle_val);
115+
z_pm_save_idle_exit();
118116
}
119117
}
120118
#endif

arch/x86/core/ia32/intstub.S

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -301,8 +301,6 @@ nestedInterrupt:
301301
handle_idle:
302302
pushl %eax
303303
pushl %edx
304-
/* Populate 'ticks' argument to z_pm_save_idle_exit */
305-
push _kernel_offset_to_idle(%ecx)
306304
/* Zero out _kernel.idle */
307305
movl $0, _kernel_offset_to_idle(%ecx)
308306

@@ -314,8 +312,6 @@ handle_idle:
314312
*/
315313

316314
call z_pm_save_idle_exit
317-
/* discard 'ticks' argument passed on the stack */
318-
add $0x4, %esp
319315
popl %edx
320316
popl %eax
321317
jmp alreadyOnIntStack

include/arch/x86/ia32/arch.h

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -244,10 +244,8 @@ typedef struct s_isrList {
244244
static inline void arch_irq_direct_pm(void)
245245
{
246246
if (_kernel.idle) {
247-
int32_t idle_val = _kernel.idle;
248-
249247
_kernel.idle = 0;
250-
z_pm_save_idle_exit(idle_val);
248+
z_pm_save_idle_exit();
251249
}
252250
}
253251

include/pm/pm.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -215,7 +215,7 @@ void pm_power_state_exit_post_ops(struct pm_state_info info);
215215

216216
#endif /* CONFIG_PM */
217217

218-
void z_pm_save_idle_exit(int32_t ticks);
218+
void z_pm_save_idle_exit(void);
219219

220220
#ifdef __cplusplus
221221
}

kernel/idle.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ static void pm_save_idle(void)
4848
#endif
4949
}
5050

51-
void z_pm_save_idle_exit(int32_t ticks)
51+
void z_pm_save_idle_exit(void)
5252
{
5353
#ifdef CONFIG_PM
5454
/* Some CPU low power states require notification at the ISR

0 commit comments

Comments
 (0)