Skip to content

Commit

Permalink
[POWERPC] 86xx: Remove unnecessary loops_per_jiffy initialization code.
Browse files Browse the repository at this point in the history
Signed-off-by: Jon Loeliger <jdl@freescale.com>
Signed-off-by: Kumar Gala <galak@kernel.crashing.org>
  • Loading branch information
Jon Loeliger authored and Kumar Gala committed Sep 14, 2007
1 parent 7f2862c commit d347b32
Showing 1 changed file with 2 additions and 12 deletions.
14 changes: 2 additions & 12 deletions arch/powerpc/platforms/86xx/mpc86xx_hpcn.c
Original file line number Diff line number Diff line change
Expand Up @@ -132,23 +132,13 @@ static int mpc86xx_exclude_device(struct pci_controller *hose,
static void __init
mpc86xx_hpcn_setup_arch(void)
{
#ifdef CONFIG_PCI
struct device_node *np;
#endif

if (ppc_md.progress)
ppc_md.progress("mpc86xx_hpcn_setup_arch()", 0);

np = of_find_node_by_type(NULL, "cpu");
if (np != 0) {
const unsigned int *fp;

fp = of_get_property(np, "clock-frequency", NULL);
if (fp != 0)
loops_per_jiffy = *fp / HZ;
else
loops_per_jiffy = 50000000 / HZ;
of_node_put(np);
}

#ifdef CONFIG_PCI
for (np = NULL; (np = of_find_node_by_type(np, "pci")) != NULL;) {
struct resource rsrc;
Expand Down

0 comments on commit d347b32

Please sign in to comment.