Merge "Check task switch by comparing the previous top task" into sc-v2-dev