summaryrefslogtreecommitdiff
path: root/drivers/edp
diff options
context:
space:
mode:
authorSivaram Nair <sivaramn@nvidia.com>2013-06-12 11:43:03 +0300
committerDan Willemsen <dwillemsen@nvidia.com>2013-09-14 13:32:25 -0700
commit9c8259f0b51f7ff65270e058f8e2d62ee06605e6 (patch)
tree1749f471b900cfb69407003ce30a6df10482a5ee /drivers/edp
parentd5c82f008c5a9f7b50f00937d7d388b90116bd41 (diff)
EDP: relocating update_loans function
Relocating this function for increased visibility within the file. Bug 1257143 Change-Id: I5ab244f57b75636a2273346d1806d24b66a3ab9c Signed-off-by: Sivaram Nair <sivaramn@nvidia.com> Reviewed-on: http://git-master/r/238029 (cherry picked from commit 609693e5575d5e7ae52d0c7faecf48fd6ed1c36e) Reviewed-on: http://git-master/r/250619 Reviewed-by: Automatic_Commit_Validation_User Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>
Diffstat (limited to 'drivers/edp')
-rw-r--r--drivers/edp/edp.c20
1 files changed, 10 insertions, 10 deletions
diff --git a/drivers/edp/edp.c b/drivers/edp/edp.c
index 1102a21de0f1..9234b716cf4d 100644
--- a/drivers/edp/edp.c
+++ b/drivers/edp/edp.c
@@ -41,6 +41,16 @@ static struct edp_manager *find_manager(const char *name)
return NULL;
}
+static void update_loans(struct edp_client *client)
+{
+ struct edp_governor *gov;
+ gov = client->manager ? client->manager->gov : NULL;
+ if (gov && client->cur && !list_empty(&client->borrowers)) {
+ if (gov->update_loans && *client->cur > client->ithreshold)
+ gov->update_loans(client);
+ }
+}
+
static void promote(struct work_struct *work)
{
unsigned int prev_denied;
@@ -271,16 +281,6 @@ int edp_register_client(struct edp_manager *mgr, struct edp_client *client)
}
EXPORT_SYMBOL(edp_register_client);
-static void update_loans(struct edp_client *client)
-{
- struct edp_governor *gov;
- gov = client->manager ? client->manager->gov : NULL;
- if (gov && client->cur && !list_empty(&client->borrowers)) {
- if (gov->update_loans && *client->cur > client->ithreshold)
- gov->update_loans(client);
- }
-}
-
/* generic default implementation */
void edp_default_update_request(struct edp_client *client,
const unsigned int *req,