android_kernel_google_msm/drivers
Mikulas Patocka 73cee5a80c cpufreq: speedstep-smi: enable interrupts when waiting
commit d4d4eda23794c701442e55129dd4f8f2fefd5e4d upstream.

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.

The hardware sometimes refuses to change frequency and in this case, we
need to retry later. I found out that we need to enable interrupts while
waiting. When we enable interrupts, the hardware 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). The exact reasons for this hardware behavior are unknown.

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
Acked-by: Viresh Kumar <viresh.kumar@linaro.org>
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Signed-off-by: Zefan Li <lizefan@huawei.com>
2015-06-19 11:40:15 +08:00
..
accessibility
acpi ACPI / cpuidle: fix deadlock between cpuidle_lock and cpu_hotplug.lock 2014-12-01 18:02:22 +08:00
amba
ata libata: prevent HSM state change race between ISR and PIO 2015-04-14 17:33:54 +08:00
atm skb: Add inline helper for getting the skb end offset from head 2014-06-07 16:02:00 -07:00
auxdisplay
base driver core: Introduce device_create_groups 2015-04-14 17:33:53 +08:00
bcma
block drbd: merge_bvec_fn: properly remap bvm->bi_bdev 2015-04-14 17:33:41 +08:00
bluetooth Bluetooth: ath3k: Add support of AR3012 bluetooth 13d3:3423 device 2015-06-19 11:40:11 +08:00
cdrom drivers/cdrom/cdrom.c: use kzalloc() for failing hardware 2013-07-13 11:03:40 -07:00
char random: add and use memzero_explicit() for clearing data 2015-02-02 17:04:54 +08:00
clk clk: remove notifier from list before freeing it 2013-06-27 11:27:30 -07:00
clocksource
connector proc connector: reject unprivileged listener bumps 2014-03-11 16:10:03 -07:00
cpufreq cpufreq: speedstep-smi: enable interrupts when waiting 2015-06-19 11:40:15 +08:00
cpuidle
crypto crypto: caam - add allocation failure handling in SPRINTFCAT macro 2014-06-07 16:02:03 -07:00
dca
devfreq
dio
dma dma: ste_dma40: don't dereference free:d descriptor 2014-03-11 16:10:02 -07:00
edac mpc85xx_edac: Make L2 interrupt shared too 2015-02-02 17:04:46 +08:00
eisa
firewire firewire: cdev: prevent kernel stack leaking into ioctl arguments 2015-02-02 17:05:24 +08:00
firmware x86, efivars: firmware bug workarounds should be in platform code 2014-06-07 16:02:10 -07:00
gpio gpio: sysfs: fix memory leak in gpiod_sysfs_set_active_low 2015-04-14 17:33:59 +08:00
gpu drm/i915: Only fence tiled region of object. 2015-04-14 17:33:56 +08:00
hid HID: roccat: potential out of bounds in pyra_sysfs_write_settings() 2015-04-14 17:33:52 +08:00
hsi
hv Drivers: hv: vmbus: incorrect device name is printed when child device is unregistered 2015-04-14 17:34:00 +08:00
hwmon hwmon: (adm1029) Ensure the fan_div cache is updated in set_fan_div 2014-07-17 15:39:50 -07:00
hwspinlock
i2c i2c: davinci: generate STP always when NACK is received 2015-04-14 17:33:40 +08:00
ide
idle intel_idle: Don't register CPU notifier if we are not running. 2014-06-07 16:02:07 -07:00
ieee802154
infiniband srp-target: Retry when QP creation fails with ENOMEM 2015-02-02 17:05:20 +08:00
input Input: I8042 - add Acer Aspire 7738 to the nomux list 2015-04-14 17:33:51 +08:00
iommu iommu/vt-d: Fix an off-by-one bug in __domain_mapping() 2015-04-14 17:33:44 +08:00
isdn isdnloop: several buffer overflows 2014-04-26 17:13:18 -07:00
leds drivers/leds/leds-ot200.c: fix error caused by shifted mask 2013-06-07 12:49:13 -07:00
lguest
macintosh
mca
md dm raid: ensure superblock's size matches device's logical block size 2015-02-02 17:05:17 +08:00
media media: media-device: fix infoleak in ioctl media_enum_entities() 2014-06-07 16:02:02 -07:00
memstick
message
mfd mfd: tc6393xb: Fail ohci suspend if full state restore is required 2015-04-14 17:33:43 +08:00
misc MISC: hpilo, remove pci_disable_device 2014-06-07 16:02:06 -07:00
mmc mmc: mxs-mmc: fix deadlock caused by recursion loop 2014-04-14 06:44:32 -07:00
mtd UBI: Fix invalid vfree() 2015-04-14 17:33:41 +08:00
net ath5k: fix spontaneus AR5312 freezes 2015-06-19 11:40:14 +08:00
nfc
nubus
of of/base: Fix PowerPC address parsing hack 2015-02-02 17:05:22 +08:00
oprofile
parisc
parport parport: parport_pc: remove double PCI ID for NetMos 2014-02-06 11:05:47 -08:00
pci PCI: Fix infinite loop with ROM image of size 0 2015-06-19 11:40:12 +08:00
pcmcia pcmcia: at91_cf: fix gpio_get_value in at91_cf_get_status 2013-07-21 18:19:01 -07:00
pinctrl
platform hp_accel: Add support for HP ZBook 15 2015-04-14 17:33:44 +08:00
pnp
power power: charger-manager: Fix NULL pointer exception with missing cm-fuel-gauge 2015-02-02 17:04:43 +08:00
pps pps: Fix a use-after free bug when unregistering a source. 2014-04-14 06:44:17 -07:00
ps3
ptp
rapidio rapidio/tsi721: Fix interrupt mask when handling MSI 2014-06-07 16:02:14 -07:00
regulator regulator: core: fix race condition in regulator_put() 2015-04-14 17:33:55 +08:00
remoteproc
rpmsg
rtc drivers/rtc/rtc-pl031.c: restore ST variant functionality 2014-06-07 16:02:14 -07:00
s390 s390/3215: fix tty output containing tabs 2015-04-14 17:34:03 +08:00
sbus bbc-i2c: Fix BBC I2C envctrl on SunBlade 2000 2014-08-14 08:42:37 +08:00
scsi usb-storage/SCSI: Add broken_fua blacklist flag 2015-04-14 17:33:56 +08:00
sfi
sh
sn
spi spi: dw: revisit FIFO size detection again 2015-04-14 17:34:04 +08:00
ssb
staging staging: comedi: comedi_compat32.c: fix COMEDI_CMD copy back 2015-06-19 11:40:12 +08:00
target iscsi-target: Fail connection on short sendmsg writes 2015-04-14 17:33:47 +08:00
tc
thermal
tty tty: Prevent untrappable signals from malicious program 2015-06-19 11:40:14 +08:00
uio Fix a few incorrectly checked [io_]remap_pfn_range() calls 2013-11-29 10:50:32 -08:00
usb USB: fix use-after-free bug in usb_hcd_unlink_urb() 2015-06-19 11:40:13 +08:00
uwb uwb: init beacon cache entry before registering uwb device 2014-12-01 18:02:28 +08:00
vhost vhost: validate vhost_get_vq_desc return value 2014-04-26 17:13:17 -07:00
video video/logo: prevent use of logos after they have been freed 2015-04-14 17:33:49 +08:00
virt
virtio virtio_pci: document why we defer kfree 2015-04-14 17:33:50 +08:00
vlynq
w1 w1: fix w1_send_slave dropping a slave id 2014-05-06 07:51:41 -07:00
watchdog watchdog: sp805: Set watchdog_device->timeout from ->set_timeout() 2014-07-06 18:49:19 -07:00
xen xen/manage: Always freeze/thaw processes when suspend/resuming 2014-12-01 18:02:25 +08:00
zorro
Kconfig
Makefile