Working pendsv switches