[PATCH 2.6.31] windfarm: add detection for second cpu pump

Benjamin Herrenschmidt benh at kernel.crashing.org
Sat Nov 28 08:36:21 EST 2009


On Fri, 2009-11-27 at 16:44 +0100, Bolko Maass wrote:
> Windfarm SMU control is explicitly missing support for a second CPU pump in G5 PowerMacs. 
> Such machines actually exist  (specifically Quads with a second pump), so this patch adds detection for it.
> 

Thanks.

BTW. The Signed-off-by: line normally goes -before- the patch :-) (And
after the description).

I'll get that upstream asap.

Cheers,
Ben.

> 
> diff -uprN a/drivers/macintosh/windfarm_smu_controls.c b/drivers/macintosh/windfarm_smu_controls.c
> --- a/drivers/macintosh/windfarm_smu_controls.c 2009-11-27 16:24:55.000000000 +0100
> +++ b/drivers/macintosh/windfarm_smu_controls.c 2009-11-16 18:22:33.000000000 +0100
> @@ -202,6 +202,8 @@ static struct smu_fan_control *smu_fan_c
>                 fct->ctrl.name = "cpu-front-fan-1";
>         else if (!strcmp(l, "CPU A PUMP"))
>                 fct->ctrl.name = "cpu-pump-0";
> +       else if (!strcmp(l, "CPU B PUMP"))
> +               fct->ctrl.name = "cpu-pump-1";
>         else if (!strcmp(l, "Slots Fan") || !strcmp(l, "Slots fan") ||
>                  !strcmp(l, "EXPANSION SLOTS INTAKE"))
>                 fct->ctrl.name = "slots-fan";
> 
> 
> 
> Signed-off by: Bolko Maass <bmaass at math.uni-bremen.de>
> _______________________________________________
> Linuxppc-dev mailing list
> Linuxppc-dev at lists.ozlabs.org
> https://lists.ozlabs.org/listinfo/linuxppc-dev




More information about the Linuxppc-dev mailing list