diff options
author | Sivaram Nair <sivaramn@nvidia.com> | 2012-10-30 16:51:39 +0200 |
---|---|---|
committer | Simone Willett <swillett@nvidia.com> | 2012-11-14 16:08:50 -0800 |
commit | 31e87f9c5f4ca81acc0cb081c02ab4f9b5c588ad (patch) | |
tree | 6e697f8683907cc9a69a664434afa0dbd7148648 /Documentation | |
parent | 443c6cfc42fc6b16eb4113efa9207c1c62c03c8c (diff) |
pm: EDP: updated documentation
Updated the EDP documentation to add more info about callbacks.
Change-Id: Ifb3efa925b35083165114c8beb06eb8a726d6d54
Signed-off-by: Sivaram Nair <sivaramn@nvidia.com>
Reviewed-on: http://git-master/r/160192
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Juha Tukkinen <jtukkinen@nvidia.com>
Reviewed-by: Diwakar Tundlam <dtundlam@nvidia.com>
Diffstat (limited to 'Documentation')
-rw-r--r-- | Documentation/edp/design | 40 |
1 files changed, 24 insertions, 16 deletions
diff --git a/Documentation/edp/design b/Documentation/edp/design index eaafb4d45805..67090623188c 100644 --- a/Documentation/edp/design +++ b/Documentation/edp/design @@ -78,22 +78,30 @@ that throttling is done only to those clients that are running at a negative E-state. The EDP manager blocks until the client finishes transitioning to the lower E-state. -8. E-state callback - -A function pointer provided during EDP client registration to the EDP -manager by each EDP client which supports negative E-states. The EDP -manager maintains a record of each driver's most recently requested -E-state (including rejected requests). When any EDP client requests a -lowering of its E-state, the EDP manager may call one or more of the -E-state callbacks to accept a previously rejected request. - -Additionally, the EDP manager will invoke the callback whenever a -client is being throttled. - -Since the callbacks are synchronous, the total time for an E-state -request that involve throttling is affected by the callback processing. -Therefore, it is important to reschedule any non-critical time-consuming -processing on a different context. +8. Callbacks + +An EDP client may provide the following callbacks which are invoked by +the manager at various stages. + + [*] throttle: invoked when the client is being throttled; + mandatory for those clients that support negative E-states + [*] promotion notification (optional): to inform the client + that a previously rejected request is granted now. + [*] loan update notification: to inform the client that a loan + amount is changed; mandatory for clients that are engaged + in a loan agreement. + [*] loan closure: to inform the client that a loan is now + closed; mandatory for clients that are engaged in a loan + agreement. + +All callbacks are synchronous which means that the total time for an +operation is affected by client processing. Therefore, it is important +to reschedule any non-critical time consuming steps on a different +context. + +IMPORTANT: Callbacks are invoked by the EDP manager while holding its +lock. Thefore, clients should never call into the EDP framework from +the callback path. Not doing so shall result in a deadlock. 9. EDP lender |