task: Optimize context switch

This patch optimizes the task context switch by only loading the task elf's
text segment only if it's not cached in MPU storage. Also the text segment is no
longer saved during a context switch as it is readonly and does not change.

Signed-off-by: Yuji Mano <yuji.mano@am.sony.com>
Acked-by: Kazunori Asayama <asayama@sm.sony.co.jp>
1 file changed