]> git.karo-electronics.de Git - karo-tx-linux.git/commit
speedstep-smi: enable interrupts when waiting
authorMikulas Patocka <mpatocka@redhat.com>
Thu, 12 Dec 2013 00:55:40 +0000 (19:55 -0500)
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>
Mon, 6 Jan 2014 14:54:05 +0000 (15:54 +0100)
commit24e1937b23867a55404eb2dc98fa618bc9851ea7
tree9da16ab2fa0df578d34a12942bcad6d79140e726
parent22c73795b101597051924556dce019385a1e2fa0
speedstep-smi: enable interrupts when waiting

On Dell Latitude C600 laptop with Pentium 3 850MHz processor, the
speedstep-smi driver sometimes loads and sometimes doesn't load with
"change to state X failed" message.

I found out that we need to enable interrupts while waiting. When we
enable interrupts, the blockage that prevents frequency transition
resolves and the transition is possible. With disabled interrupts, the
blockage doesn't resolve (no matter how long do we wait).

This patch enables interrupts in the function speedstep_set_state that can
be called with disabled interrupts. However, this function is called with
disabled interrupts only from speedstep_get_freqs, so it shouldn't cause
any problem.

Signed-off-by: Mikulas Patocka <mpatocka@redhat.com>
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
drivers/cpufreq/speedstep-lib.c
drivers/cpufreq/speedstep-smi.c