[PATCH v3 16/31] coresight: Add callback to determine if context save/restore is needed