OMAP3: SRF: Fix latency resource target value computations
commit8d8a0dc87f38a260a00b3f3d7705d9ad0d467de9
authorRajendra Nayak <rnayak@ti.com>
Tue, 6 Oct 2009 13:20:13 +0000 (6 18:50 +0530)
committerKevin Hilman <khilman@deeprootsystems.com>
Fri, 23 Oct 2009 18:21:53 +0000 (23 11:21 -0700)
tree96315840f4703c3c30b74965dc5673c3e4aec297
parent3ddd27793bda5d7e0cb6d808c185bc0eea12542e
OMAP3: SRF: Fix latency resource target value computations

The Shared resource framework currently considers the highest requested
level for a resource as the target level to be set. This works for OPP
and frequency resources as they are used to model performace based
constraints. However for latency based constraints/resources the least requested
level should be the one considered for the target level. This patch fixes
the issue by having an additional flag to identify the different types
of resources. Currently supported ones are Performace resources and
latency resources.

Signed-off-by: Rajendra Nayak <rnayak@ti.com>
arch/arm/mach-omap2/resource34xx.c
arch/arm/mach-omap2/resource34xx.h
arch/arm/plat-omap/include/plat/resource.h
arch/arm/plat-omap/resource.c