ufs: Add support for clock scaling using devfreq framework
authorSahitya Tummala <stummala@codeaurora.org>
Thu, 25 Sep 2014 12:32:34 +0000 (15:32 +0300)
committerChristoph Hellwig <hch@lst.de>
Wed, 1 Oct 2014 11:11:25 +0000 (13:11 +0200)
commit856b348305c98d4e0c8e5eafa97c61443197f8d3
treebbb29c8efc53c8b7b6e83f547e57a8007bc14b8c
parent4cff6d991e4a291cf50fe2659da2ea9ad46620bf
ufs: Add support for clock scaling using devfreq framework

The clocks for UFS device will be managed by generic DVFS (Dynamic
Voltage and Frequency Scaling) framework within kernel. This devfreq
framework works with different governors to scale the clocks. By default,
UFS devices uses simple_ondemand governor which scales the clocks up if
the load is more than upthreshold and scales down if the load is less than
downthreshold.

Signed-off-by: Sahitya Tummala <stummala@codeaurora.org>
Signed-off-by: Dolev Raviv <draviv@codeaurora.org>
Signed-off-by: Christoph Hellwig <hch@lst.de>
drivers/scsi/ufs/Kconfig
drivers/scsi/ufs/ufshcd.c
drivers/scsi/ufs/ufshcd.h