ARM's schedule_tail() is called from two places: context_switch() and
continue_new_vcpu(). Both functions are always called with
prev!=current. So replace the correspondent check in schedule_tail()
with ASSERT() which is the development (debug) build guard.
Signed-off-by: Andrii Anisov <andrii_anisov@epam.com>
Reviewed-by: Dario Faggioli <dfaggioli@suse.com>
Acked-by: Julien Grall <julien.grall@arm.com>
static void schedule_tail(struct vcpu *prev)
{
+ ASSERT(prev != current);
+
ctxt_switch_from(prev);
ctxt_switch_to(current);
context_saved(prev);
- if ( prev != current )
- update_runstate_area(current);
+ update_runstate_area(current);
/* Ensure that the vcpu has an up-to-date time base. */
update_vcpu_system_time(current);