• Jon Hunter's avatar
    OMAP: Add debugfs node to show the summary of all clocks · a5302572
    Jon Hunter authored
    Add a debugfs node called "summary" to /sys/kernel/debug/clock/
    that displays a quick summary of all clocks registered in the
    "clocks" structure. The format of the output from this node is:
    
    <clock-name> <parent-name> <rate> <usecount>
    
    This debugfs node was very helpful for taking a quick snapshot of
    the linux clock tree for OMAP and ensuring clock frequencies
    calculated by the kernel were indeed correct. This patch helped
    uncover some bugs in the linux clock tree for OMAP4.
    Signed-off-by: default avatarJon Hunter <jon-hunter@ti.com>
    Signed-off-by: default avatarPaul Walmsley <paul@pwsan.com>
    a5302572
clock.c 11.8 KB