Loading drivers/clk/clk.c +7 −12 Original line number Original line Diff line number Diff line Loading @@ -2935,30 +2935,25 @@ void clk_debug_print_hw(struct clk_core *clk, struct seq_file *f) if (!clk->ops->list_registers) if (!clk->ops->list_registers) return; return; clk_prepare_lock(); if (clk->ops->bus_vote) clk->ops->bus_vote(clk->hw, true); clk->ops->list_registers(f, clk->hw); clk->ops->list_registers(f, clk->hw); if (clk->ops->bus_vote) clk->ops->bus_vote(clk->hw, false); clk_prepare_unlock(); } } EXPORT_SYMBOL(clk_debug_print_hw); EXPORT_SYMBOL(clk_debug_print_hw); static int print_hw_show(struct seq_file *m, void *unused) static int print_hw_show(struct seq_file *m, void *unused) { { struct clk_core *c = m->private; struct clk_core *c = m->private; struct clk_core *clk; clk_prepare_lock(); clk_prepare_lock(); if (c->ops->bus_vote) for (clk = c; clk; clk = clk->parent) c->ops->bus_vote(c->hw, true); if (clk->ops->bus_vote) clk->ops->bus_vote(clk->hw, true); clk_debug_print_hw(c, m); clk_debug_print_hw(c, m); if (c->ops->bus_vote) for (clk = c; clk; clk = clk->parent) c->ops->bus_vote(c->hw, false); if (clk->ops->bus_vote) clk->ops->bus_vote(c->hw, false); clk_prepare_unlock(); clk_prepare_unlock(); return 0; return 0; Loading Loading
drivers/clk/clk.c +7 −12 Original line number Original line Diff line number Diff line Loading @@ -2935,30 +2935,25 @@ void clk_debug_print_hw(struct clk_core *clk, struct seq_file *f) if (!clk->ops->list_registers) if (!clk->ops->list_registers) return; return; clk_prepare_lock(); if (clk->ops->bus_vote) clk->ops->bus_vote(clk->hw, true); clk->ops->list_registers(f, clk->hw); clk->ops->list_registers(f, clk->hw); if (clk->ops->bus_vote) clk->ops->bus_vote(clk->hw, false); clk_prepare_unlock(); } } EXPORT_SYMBOL(clk_debug_print_hw); EXPORT_SYMBOL(clk_debug_print_hw); static int print_hw_show(struct seq_file *m, void *unused) static int print_hw_show(struct seq_file *m, void *unused) { { struct clk_core *c = m->private; struct clk_core *c = m->private; struct clk_core *clk; clk_prepare_lock(); clk_prepare_lock(); if (c->ops->bus_vote) for (clk = c; clk; clk = clk->parent) c->ops->bus_vote(c->hw, true); if (clk->ops->bus_vote) clk->ops->bus_vote(clk->hw, true); clk_debug_print_hw(c, m); clk_debug_print_hw(c, m); if (c->ops->bus_vote) for (clk = c; clk; clk = clk->parent) c->ops->bus_vote(c->hw, false); if (clk->ops->bus_vote) clk->ops->bus_vote(c->hw, false); clk_prepare_unlock(); clk_prepare_unlock(); return 0; return 0; Loading