mtd: sh_flctl: Add power management with QoS request
authorBastian Hecht <hechtb@googlemail.com>
Sun, 18 Mar 2012 14:13:20 +0000 (15:13 +0100)
committerDavid Woodhouse <David.Woodhouse@intel.com>
Mon, 26 Mar 2012 23:53:34 +0000 (00:53 +0100)
commitcfe781946dac7f5ff42e23cd7054c75e7201fbdc
tree75d102cf44ab8d2fe190a67594fee88790005b88
parent42d7fbe223ab878b23de9e3b0166f8cd665a2aa5
mtd: sh_flctl: Add power management with QoS request

Adds power management code with fine granularity. Every flash control
command is enclosed by runtime_put()/get()s. To make sure that no
overhead is generated by too frequent power state switches, a quality of
service request is issued.

Signed-off-by: Bastian Hecht <hechtb@gmail.com>
Signed-off-by: Artem Bityutskiy <artem.bityutskiy@linux.intel.com>
Signed-off-by: David Woodhouse <David.Woodhouse@intel.com>
drivers/mtd/nand/sh_flctl.c
include/linux/mtd/sh_flctl.h