Patent ID: 8516281

Claim:
A method for controlling a group of logic, comprising: obtaining a first target location in a disk included in the hard disk system, including by obtaining, from a command queue, a first access instruction associated with accessing the first target location; obtaining a second target location in the disk included in the hard disk system, including by obtaining, from the command queue, a second access instruction associated with accessing the second target location, wherein the first access instruction and the second access instruction are consecutive instructions in the command queue; calculating a number of units between the first target location and the second target location; determining whether there is time for the group of logic to transition from a lower power state to an operational state in which the group of logic is capable of accessing the target location, in the event the group of logic is put into the lower power state, wherein the determination is based at least in part on (1) the number of units between (a) the first target location and (b) the second target location and (2) a warm up time associated with the group of logic; and in the event it is determined there is time for each piece of logic in the group to transition, using a processor to put the group of logic into the lower power state, including by inserting, between the first access instruction and the second access instruction in the command queue, a power instruction associated with putting the group of logic into the lower power state.