1. A method comprising: with an operating system (OS), detecting an opportunity for a transition of a processor executing the OS to a first power state; and in response to detection of the opportunity, the OS initiating the transition, including the OS triggering a task switch by the processor, the task switch to save at least a portion of processor state for the processor to at least a portion of task switch repository, wherein the task switch repository is available to be accessed for another task switch which is not in support of a power state transition by the processor.