Skip to content

Commit 1b230f8

Browse files
ZhaoxiangJinkartben
authored andcommitted
pm: policy: default: Removed unused code
Removed unused code Signed-off-by: Zhaoxiang Jin <Zhaoxiang.Jin_1@nxp.com>
1 parent d91b8b4 commit 1b230f8

File tree

1 file changed

+0
-5
lines changed

1 file changed

+0
-5
lines changed

subsys/pm/policy/policy_default.c

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@
1111

1212
const struct pm_state_info *pm_policy_next_state(uint8_t cpu, int32_t ticks)
1313
{
14-
int64_t cyc = -1;
1514
uint8_t num_cpu_states;
1615
const struct pm_state_info *cpu_states;
1716
const struct pm_state_info *out_state = NULL;
@@ -22,10 +21,6 @@ const struct pm_state_info *pm_policy_next_state(uint8_t cpu, int32_t ticks)
2221
}
2322
#endif
2423

25-
if (ticks != K_TICKS_FOREVER) {
26-
cyc = k_ticks_to_cyc_ceil32(ticks);
27-
}
28-
2924
num_cpu_states = pm_state_cpu_get_all(cpu, &cpu_states);
3025

3126
for (uint32_t i = 0; i < num_cpu_states; i++) {

0 commit comments

Comments
 (0)