cpufreq / intel_pstate: Set timer timeout correctly
authorDirk Brandewie <dirk.brandewie@gmail.com>
Thu, 4 Apr 2013 17:35:35 +0000 (10:35 -0700)
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>
Mon, 8 Apr 2013 20:09:23 +0000 (22:09 +0200)
commitec376a2ab97ec3be52ca282dc6ac102e805d1005
treee1460a4faa9b35cc82bb9b397deffab8319a2af7
parent31880c37c11e28cb81c70757e38392b42e695dc6
cpufreq / intel_pstate: Set timer timeout correctly

The current calculation of the delay time is wrong and a cut and
paste error from a previous experimental driver.  This can result in
the timeout being set to jiffies + 1 which setup the driver to race
with itself if the APIC timer interrupt happens at just the right
time.

References: https://bugzilla.redhat.com/show_bug.cgi?id=920289
Reported-by: Adam Williamson <awilliam@redhat.com>
Reported-and-tested-by: Parag Warudkar <parag.lkml@gmail.com>
Signed-off-by: Dirk Brandewie <dirk.j.brandewie@intel.com>
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
drivers/cpufreq/intel_pstate.c