intel_ips -- ensure we do not enable gpu turbo mode without driver linkage
authorAndy Whitcroft <apw@canonical.com>
Tue, 5 Oct 2010 08:48:42 +0000 (09:48 +0100)
committerMatthew Garrett <mjg@redhat.com>
Tue, 5 Oct 2010 18:59:21 +0000 (14:59 -0400)
commit070c0ee1ef9f5550cac9247190f0289349f28c01
treeb78952dc9942382fb59a548304ce14b465bff53a
parenta8c096adbd2b55942ff13c8bbc573a7551768003
intel_ips -- ensure we do not enable gpu turbo mode without driver linkage

Both when polling the current turbo status (in poll_turbo_status mode)
and when handling thermal events (in ips_irq_handler) the current status
of GPU turbo is updated to match the hardware status.  However if during
driver initialisation we were unable aquire linkage to the i915 driver
enabling GPU turbo will lead to an oops on the first attempt to determine
GPU busy status.

Ensure that we do not enable GPU turbo unless we have driver linkage.

BugLink: http://bugs.launchpad.net/bugs/632430
Cc: stable@kernel.org
Signed-off-by: Andy Whitcroft <apw@canonical.com>
Signed-off-by: Matthew Garrett <mjg@redhat.com>
drivers/platform/x86/intel_ips.c