Message ID | 1308145856-6112-15-git-send-email-daniel.lezcano@linaro.org |
---|---|
State | Accepted |
Headers | show |
diff --git a/powerdebug.c b/powerdebug.c index 5ff675d..28b23b4 100644 --- a/powerdebug.c +++ b/powerdebug.c @@ -198,20 +198,16 @@ int mainloop(struct powerdebug_options *options) struct timeval tval; fd_set readfds; - if (options->selectedwindow == REGULATOR) - regulator_display(); - - if (options->selectedwindow == SENSOR) - sensor_display(); if (options->selectedwindow == CLOCK) { if (enter_hit) - clock_toggle_expanded(); - - clock_display(); + display_select(); enter_hit = false; } + display_refresh(); + + FD_ZERO(&readfds); FD_SET(0, &readfds); tval.tv_sec = options->ticktime;
We don't have anymore a specific case for each pm block as we use some ops now. Signed-off-by: Daniel Lezcano <daniel.lezcano@linaro.org> --- powerdebug.c | 12 ++++-------- 1 files changed, 4 insertions(+), 8 deletions(-)