update context_switch data