aboutsummaryrefslogtreecommitdiff
path: root/clocks.c
AgeCommit message (Collapse)Author
2011-09-20clock.c: use standard kernel/debug locationNishanth Menon
getmntent and family is not supported on Bionic. instead use the standard kernel debugfs mount point. Signed-off-by: Nishanth Menon <nm@ti.com> Signed-off-by: Daniel Lezcano <daniel.lezcano@linaro.org>
2011-08-25follow symlinks when browsing the directory treeDaniel Lezcano
Sometime we are interested in following the symlinks, sometime not. Signed-off-by: Daniel Lezcano <daniel.lezcano@linaro.org>
2011-06-27fix segfault when no clock is availableDaniel Lezcano
When there is no clock available, we even register the display ops. The 'enter' callbakc is set but not data is available int the row private data which leads to a segfaults. This patch fix this problem by not registering the ops if the pm subsystem was not correctly initialized. In the meantime, we have to erase the window when we are switching from one window to another. We can say it is the "default" display callback. Signed-off-by: Daniel Lezcano <daniel.lezcano@linaro.org> Reported-by: Milo (Woogyom) Kim <woogyom.kim@gmail.com>
2011-06-21Optimize the codeDaniel Lezcano
With this patch the content of the debugfs file is readen only when the 'refresh' button is hit and at the init of powerdebug. Signed-off-by: Daniel Lezcano <daniel.lezcano@linaro.org>
2011-06-21add a select callback on a clock from the search resultDaniel Lezcano
Signed-off-by: Daniel Lezcano <daniel.lezcano@linaro.org>
2011-06-21find a clock with a clock nameDaniel Lezcano
and add a 'find' ops. Signed-off-by: Daniel Lezcano <daniel.lezcano@linaro.org>
2011-06-21Optimize the displayDaniel Lezcano
Signed-off-by: Daniel Lezcano <daniel.lezcano@linaro.org>
2011-06-21Cleanup the headersDaniel Lezcano
Signed-off-by: Daniel Lezcano <daniel.lezcano@linaro.org>
2011-06-21Factor out display codeDaniel Lezcano
Signed-off-by: Daniel Lezcano <daniel.lezcano@linaro.org>
2011-06-15cleanup the headersDaniel Lezcano
Make some cleanup around the headers. Signed-off-by: Daniel Lezcano <daniel.lezcano@linaro.org>
2011-06-15Encapsulate the display (6)Daniel Lezcano
Let's create some ops to be registered by the pm blocks to the display. Signed-off-by: Daniel Lezcano <daniel.lezcano@linaro.org>
2011-06-15make the functions name consistentDaniel Lezcano
Signed-off-by: Daniel Lezcano <daniel.lezcano@linaro.org>
2011-06-15make all pm block own their display dataDaniel Lezcano
That allows to keep track of the different selections from the different windows. Signed-off-by: Daniel Lezcano <daniel.lezcano@linaro.org>
2011-06-15Add some helper functions in a specific utils fileDaniel Lezcano
Signed-off-by: Daniel Lezcano <daniel.lezcano@linaro.org>
2011-06-08remove unused 'hrow' and 'selected' parametersDaniel Lezcano
Signed-off-by: Daniel Lezcano <daniel.lezcano@linaro.org>
2011-06-08rewrite the powerdebug clock codeDaniel Lezcano
Signed-off-by: Daniel Lezcano <daniel.lezcano@linaro.org>
2011-06-08remove unused 'verbose' optionDaniel Lezcano
Signed-off-by: Daniel Lezcano <daniel.lezcano@linaro.org>
2011-06-08remove unused code and parameter for clock dump functionDaniel Lezcano
the verbose option is unused. Signed-off-by: Daniel Lezcano <daniel.lezcano@linaro.org>
2011-06-08remove unused parameter 'options->dump'Daniel Lezcano
Signed-off-by: Daniel Lezcano <daniel.lezcano@linaro.org>
2011-06-08remove unused parameterDaniel Lezcano
Signed-off-by: Daniel Lezcano <daniel.lezcano@linaro.org>
2011-06-08use 'find' tree functionDaniel Lezcano
Signed-off-by: Daniel Lezcano <daniel.lezcano@linaro.org>
2011-06-08Remove old clock tree dump codeDaniel Lezcano
It is replaced by the tree code. Signed-off-by: Daniel Lezcano <daniel.lezcano@linaro.org>
2011-06-08use the tree code to dump the clocksDaniel Lezcano
Signed-off-by: Daniel Lezcano <daniel.lezcano@linaro.org>
2011-06-08function helper to read the filesDaniel Lezcano
Signed-off-by: Daniel Lezcano <daniel.lezcano@linaro.org>
2011-06-08tree structure abstraction for directory hierarchiesDaniel Lezcano
Signed-off-by: Daniel Lezcano <daniel.lezcano@linaro.org>
2011-06-08fix segfault when the default window is not the clockDaniel Lezcano
Signed-off-by: Daniel Lezcano <daniel.lezcano@linaro.org>
2011-06-08provide a clock allocatorDaniel Lezcano
Signed-off-by: Daniel Lezcano <daniel.lezcano@linaro.org>
2011-06-08reorganize code to prevent forward declarationDaniel Lezcano
That will cleanup the powerdebug header because these functions are used in the clock code only. Signed-off-by: Daniel Lezcano <daniel.lezcano@linaro.org>
2011-06-08move clock_info structure definitionDaniel Lezcano
Let's make this structure private Signed-off-by: Daniel Lezcano <daniel.lezcano@linaro.org>
2011-05-24nit : fix output hexadecimal formatDaniel Lezcano
Signed-off-by: Daniel Lezcano <daniel.lezcano@linaro.org>
2011-04-04Remove pointless function definitionsDaniel Lezcano
By moving the functions in the right order in the file, we can get ride of their definitions and we can set them static. Signed-off-by: Daniel Lezcano <daniel.lezcano@free.fr> Signed-off-by: Amit Kucheria <amit.kucheria@linaro.org>
2011-04-04simplify clock_init functionDaniel Lezcano
Signed-off-by: Daniel Lezcano <daniel.lezcano@free.fr> Signed-off-by: Amit Kucheria <amit.kucheria@linaro.org>
2011-04-04Return an error instead of exiting deeper in the codeDaniel Lezcano
Signed-off-by: Daniel Lezcano <daniel.lezcano@free.fr> Signed-off-by: Amit Kucheria <amit.kucheria@linaro.org>
2011-04-04Remove unused clk_name variableDaniel Lezcano
Signed-off-by: Daniel Lezcano <daniel.lezcano@free.fr> Signed-off-by: Amit Kucheria <amit.kucheria@linaro.org>
2011-04-04improve function to read the fileDaniel Lezcano
Use a simple function to read the content of the file. Fix the format of the flags which were always zero by reading in heaxdecimal mode. Signed-off-by: Daniel Lezcano <daniel.lezcano@free.fr> Signed-off-by: Amit Kucheria <amit.kucheria@linaro.org>
2011-04-04change debugfs finder functionDaniel Lezcano
Change the debugfs_locate_mpoint function to be nicer and more efficient. Another effect is that fixes a segmentation fault when calling powerdebug --dump Signed-off-by: Daniel Lezcano <daniel.lezcano@free.fr> Signed-off-by: Amit Kucheria <amit.kucheria@linaro.org>
2011-04-04Further reduce dump variable usageDaniel Lezcano
The modified function are used on the display mode context, we no longer need to pass the dump option. Signed-off-by: Daniel Lezcano <daniel.lezcano@free.fr> Signed-off-by: Amit Kucheria <amit.kucheria@linaro.org>
2011-03-24make 'selectedwindow' variable staticDaniel Lezcano
Signed-off-by: Daniel Lezcano <daniel.lezcano@free.fr> Signed-off-by: Amit Kucheria <amit.kucheria@linaro.org>
2011-03-24make 'dump' variable staticDaniel Lezcano
Signed-off-by: Daniel Lezcano <daniel.lezcano@free.fr> Signed-off-by: Amit Kucheria <amit.kucheria@linaro.org>
2011-01-17copyright: remove IBM copyrightAmit Kucheria
According to https://wiki.linaro.org/Copyright, all work done by assignees is copyrighted to Linaro.
2011-01-12Mass whitespace fixupsAmit Kucheria
Get rid of blank lines, add spaces around operators, etc.
2010-12-02By default show all data in dump modeAmit Arora
2010-12-02Re-read clock tree on "refresh"Amit Arora
2010-12-01Show parents for a given clock in ncurses mode tooAmit Arora
2010-11-30Show parents, when given a clock name in dump modeAmit Arora
2010-11-30Fix scrolling for first clock beyond screenAmit Arora
2010-11-16Bug: fix sigsegv for -cd optionsAmit Arora
2010-11-16comment out debug/test codeAmit Arora
2010-11-16If unable to read clock tree, inform userAmit Arora
2010-11-16Scroll when user selects clock beyond maxyAmit Arora