]> git.baikalelectronics.ru Git - kernel.git/commit
mmc: core: fix regression: set default clock gating delay to 0
authorGuennadi Liakhovetski <g.liakhovetski@gmx.de>
Thu, 23 Feb 2012 10:22:29 +0000 (11:22 +0100)
committerChris Ball <cjb@laptop.org>
Sun, 4 Mar 2012 17:18:40 +0000 (12:18 -0500)
commit5cd16e6682d7eb34146a9e8a10f6227746d17668
tree865ac9b487b99105efad7eedfa1a6b96776e8fd7
parent7f0e37c08d21117e4f04cba1870b1e38decd9db7
mmc: core: fix regression: set default clock gating delay to 0

A recent commit "mmc: core: Use delayed work in clock gating framework"
(b264b6ce2ea3487) introduced a default 200ms delay before clock gating
actually takes place.  This means that every time an MMC interface
becomes idle it first stays on for 200ms before gating its clock. This
leads to increased power consumption and is therefore a clear regression.
This patch restores the original behaviour by setting the default delay
to 0. Users prioritising throughput over power efficiency can still
modify the delay via sysfs.

Signed-off-by: Guennadi Liakhovetski <g.liakhovetski@gmx.de>
Signed-off-by: Chris Ball <cjb@laptop.org>
drivers/mmc/core/host.c