aboutsummaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authorMinfei Huang <[email protected]>2016-04-25 17:20:28 +0800
committerJohn Stultz <[email protected]>2016-06-20 12:46:34 -0700
commit0fb71d340d355156818bb53eb36ae79a3f88bda9 (patch)
tree5f4c0147a75e4a7f97a7c0bde6ebf5d50e4c0ff2 /scripts
parentaf8c34ce6ae32addda3788d54a7e340cad22516b (diff)
clocksource: Make clocksource insert entry more efficient
In clocksource_enqueue(), it is unnecessary to continue looping the list, if we find there is an entry that the value of rating is smaller than the new one. It is safe to be out the loop, because all of entry are inserted in descending order. Cc: Prarit Bhargava <[email protected]> Cc: Richard Cochran <[email protected]> Cc: Thomas Gleixner <[email protected]> Cc: Ingo Molnar <[email protected]> Signed-off-by: Minfei Huang <[email protected]> Signed-off-by: John Stultz <[email protected]>
Diffstat (limited to 'scripts')
0 files changed, 0 insertions, 0 deletions