/* * arch/sh/kernel/cpu/clock.c - SuperH clock framework * * Copyright (C) 2005 - 2009 Paul Mundt * * This clock framework is derived from the OMAP version by: * * Copyright (C) 2004 - 2008 Nokia Corporation * Written by Tuukka Tikkanen <tuukka.tikkanen@elektrobit.com> * * Modified for omap shared clock framework by Tony Lindgren <tony@atomide.com> * * This file is subject to the terms and conditions of the GNU General Public * License. See the file "COPYING" in the main directory of this archive * for more details. */ #include <linux/kernel.h> #include <linux/init.h> #include <linux/clk.h> #include <asm/clock.h> #include <asm/machvec.h>
int __init clk_init(void) { int ret; #ifndef CONFIG_COMMON_CLK ret = arch_clk_init(); if (unlikely(ret)) { pr_err("%s: CPU clock registration failed.\n", __func__); return ret; } #endif if (sh_mv.mv_clk_init) { ret = sh_mv.mv_clk_init(); if (unlikely(ret)) { pr_err("%s: machvec clock initialization failed.\n", __func__); return ret; } } #ifndef CONFIG_COMMON_CLK /* Kick the child clocks.. */ recalculate_root_clocks(); /* Enable the necessary init clocks */ clk_enable_init_clocks(); #endif return ret; }Contributors
Person | Tokens | Prop | Commits | CommitProp |
Paul Mundt | 78 | 86.67% | 5 | 71.43% |
Rich Felker | 10 | 11.11% | 1 | 14.29% |
Dmitry Pervushin | 2 | 2.22% | 1 | 14.29% |
Total | 90 | 100.00% | 7 | 100.00% |
Person | Tokens | Prop | Commits | CommitProp |
Paul Mundt | 87 | 82.08% | 6 | 66.67% |
Rich Felker | 10 | 9.43% | 1 | 11.11% |
Magnus Damm | 7 | 6.60% | 1 | 11.11% |
Dmitry Pervushin | 2 | 1.89% | 1 | 11.11% |
Total | 106 | 100.00% | 9 | 100.00% |