]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit6cc313f190aaa23ec6826ee630eb33521bfa070a
treeb78952dc9942382fb59a548304ce14b465bff53a
parent48a5003d335ffa21d91421408fd510d5b741d125
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