windfarm_pm112.c (7022b15e2a9f878fd5184586064c63352c3dd225) windfarm_pm112.c (71a157e8edca55198e808f8561dd49017a54ee34)
1/*
2 * Windfarm PowerMac thermal control.
3 * Control loops for machines with SMU and PPC970MP processors.
4 *
5 * Copyright (C) 2005 Paul Mackerras, IBM Corp. <paulus@samba.org>
6 * Copyright (C) 2006 Benjamin Herrenschmidt, IBM Corp.
7 *
8 * Use and redistribute under the terms of the GNU GPL v2.

--- 662 unchanged lines hidden (view full) ---

671 .owner = THIS_MODULE,
672 },
673};
674
675static int __init wf_pm112_init(void)
676{
677 struct device_node *cpu;
678
1/*
2 * Windfarm PowerMac thermal control.
3 * Control loops for machines with SMU and PPC970MP processors.
4 *
5 * Copyright (C) 2005 Paul Mackerras, IBM Corp. <paulus@samba.org>
6 * Copyright (C) 2006 Benjamin Herrenschmidt, IBM Corp.
7 *
8 * Use and redistribute under the terms of the GNU GPL v2.

--- 662 unchanged lines hidden (view full) ---

671 .owner = THIS_MODULE,
672 },
673};
674
675static int __init wf_pm112_init(void)
676{
677 struct device_node *cpu;
678
679 if (!machine_is_compatible("PowerMac11,2"))
679 if (!of_machine_is_compatible("PowerMac11,2"))
680 return -ENODEV;
681
682 /* Count the number of CPU cores */
683 nr_cores = 0;
684 for (cpu = NULL; (cpu = of_find_node_by_type(cpu, "cpu")) != NULL; )
685 ++nr_cores;
686
687 printk(KERN_INFO "windfarm: initializing for dual-core desktop G5\n");

--- 27 unchanged lines hidden ---
680 return -ENODEV;
681
682 /* Count the number of CPU cores */
683 nr_cores = 0;
684 for (cpu = NULL; (cpu = of_find_node_by_type(cpu, "cpu")) != NULL; )
685 ++nr_cores;
686
687 printk(KERN_INFO "windfarm: initializing for dual-core desktop G5\n");

--- 27 unchanged lines hidden ---