EDP: add E0 sum to manager/status debug attrib
Sivaram Nair [Mon, 18 Mar 2013 17:06:30 +0000 (19:06 +0200)]
The sum of E0 from all clients is added to the <manager>/status
debug attribute.

Change-Id: Ice9cee05ab7821168ba1e8af7765ba65e5033bbb
Signed-off-by: Sivaram Nair <sivaramn@nvidia.com>
Reviewed-on: http://git-master/r/211227
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Diwakar Tundlam <dtundlam@nvidia.com>

drivers/edp/edp_debug.c

index 737c8a3..ac5dd3b 100644 (file)
@@ -85,6 +85,7 @@ static int manager_status_show(struct seq_file *file, void *data)
        mutex_lock(&edp_lock);
 
        seq_printf(file, "cap      : %u\n", m->max);
+       seq_printf(file, "sum(E0)  : %u\n", e0_current_sum(m));
        seq_printf(file, "remaining: %u\n", m->remaining);
 
        seq_printf(file, "------------------------------------------\n");