[PATCH 3/6 v2] cpufreq: tolerate inexact values when collecting stats

2012-11-02 Thread Mark Langsdorf
When collecting stats, if a frequency doesn't match the table, go through the table again with both the search frequency and table values shifted left by 10 bits. Signed-off-by: Mark Langsdorf Cc: MyungJoo Ham Changes from v1: Implemented a simple round-up algorithm instead of the

[PATCH 3/6 v2] cpufreq: tolerate inexact values when collecting stats

2012-11-02 Thread Mark Langsdorf
When collecting stats, if a frequency doesn't match the table, go through the table again with both the search frequency and table values shifted left by 10 bits. Signed-off-by: Mark Langsdorf mark.langsd...@calxeda.com Cc: MyungJoo Ham myungjoo@gmail.com Changes from v1: Implemented