zephyriot / zep-jira14

0 stars 0 forks source link

timeslice reset is not tested for interrupt-induced swaps #2068

Open nashif opened 7 years ago

nashif commented 7 years ago

Reported by Andrew Boie:

The schedule_api test_sched_timeslice_reset code currently only evaluates two cases:

1) Cooperative context switches 2) Timeslice expiry

However there is a third case, if thread X is timeslicing, gets an interrupt which causes thread Y to be scheduled, AND Y is also timeslicing, then Y's timeslice needs to be reset. This requires modification to the interrupt handling code and is currently only implemented on ARM and X86.

Extend this test case to simulate and test this scenario.

(Imported from Jira ZEP-2232)

nashif commented 7 years ago

by Mark Linkmeyer:

Since previously assigned to Sharron, I'm reassigning now to Chandrakala Kempanna .

nashif commented 7 years ago

by Andrew Boie:

Please note: when you implement this, you will see that this is not implemented correctly on ARC and Xtensa (ZEP-2233, ZEP-2234)

nashif commented 7 years ago

Related to ZEP-2234

nashif commented 7 years ago

Related to ZEP-2233