cregit-Linux how code gets into the kernel

Release 4.14 arch/powerpc/sysdev/mpc5xxx_clocks.c

// SPDX-License-Identifier: GPL-2.0
/**
 *      mpc5xxx_get_bus_frequency - Find the bus frequency for a device
 *      @node:  device node
 *
 *      Returns bus frequency (IPS on MPC512x, IPB on MPC52xx),
 *      or 0 if the bus frequency cannot be found.
 */

#include <linux/kernel.h>
#include <linux/of_platform.h>
#include <linux/export.h>
#include <asm/mpc5xxx.h>


unsigned long mpc5xxx_get_bus_frequency(struct device_node *node) { const unsigned int *p_bus_freq = NULL; of_node_get(node); while (node) { p_bus_freq = of_get_property(node, "bus-frequency", NULL); if (p_bus_freq) break; node = of_get_next_parent(node); } of_node_put(node); return p_bus_freq ? *p_bus_freq : 0; }

Contributors

PersonTokensPropCommitsCommitProp
Wolfgang Denk6293.94%133.33%
Anatolij Gustschin23.03%133.33%
Christophe Jaillet23.03%133.33%
Total66100.00%3100.00%

EXPORT_SYMBOL(mpc5xxx_get_bus_frequency);

Overall Contributors

PersonTokensPropCommitsCommitProp
Wolfgang Denk7487.06%120.00%
Anatolij Gustschin55.88%120.00%
Paul Gortmaker33.53%120.00%
Christophe Jaillet22.35%120.00%
Greg Kroah-Hartman11.18%120.00%
Total85100.00%5100.00%
Information contained on this website is for historical information purposes only and does not indicate or represent copyright ownership.
Created with cregit.