Patent ID: 8707073

Claim:
A computer program product comprising a computer readable storage medium having a computer readable program stored therein, wherein the computer readable user-mode program, when executed on a computing device, causes the computing device to: continuously check a plurality of I/O ports for incoming workload, wherein checking the plurality of I/O ports for the incoming workload comprises: during a predetermined power management cycle, receive a sample indicating a value of a busy flag (B) at predetermined intervals (T); for a current predetermined interval (T), responsive to a value of the busy flag (B) failing to be equal to a first value, increment a count for a number of samples (N); and responsive to a current value of the count for the number of samples (N) being greater than a total number of samples (M), determine whether a current value of a count of samples (U) is less than a low workload threshold (L); responsive to the current value of the count of sample (U) being lower than the low workload threshold (L) for a current operating frequency, decrease an operating frequency of the processor; and responsive to the current value of the count of samples (U) being higher than a high workload threshold (H), increase the operating frequency of the processor.