lkml.org 
[lkml]   [2013]   [Aug]   [6]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
SubjectRe: [PATCH V2 5/6] cpuidle/powerpc: Backend-powerpc idle driver for powernv and pseries.
From
Date
On Wed, 2013-07-31 at 08:29 +0530, Deepthi Dharwar wrote:
> /*
> - * pseries_idle_probe()
> + * powerpc_idle_probe()
> * Choose state table for shared versus dedicated partition
> */
> -static int pseries_idle_probe(void)
> +static int powerpc_idle_probe(void)
> {
>
> +#ifndef PPC_POWERNV
> if (!firmware_has_feature(FW_FEATURE_SPLPAR))
> return -ENODEV;
> +#endif

A bunch of ifdefs is not a good start for a file you're claiming is now
generic for all powerpc.

Certainly you shouldn't be calling pseries stuff based only on the
absence of powernv.

And do you not support building one kernel that supports both pseries
and powernv?

> if (cpuidle_disable != IDLE_NO_OVERRIDE)
> return -ENODEV;
>
> if (max_idle_state == 0) {
> - printk(KERN_DEBUG "pseries processor idle disabled.\n");
> + printk(KERN_DEBUG "powerpc processor idle disabled.\n");
> return -EPERM;
> }
>
> +#ifdef PPC_POWERNV
> + cpuidle_state_table = powernv_states;
> +#else
> if (get_lppaca()->shared_proc)

Here's another example. get_lppaca() will only build on book3s -- and
yet we get requests for e500 code to use this file.

-Scott





\
 
 \ /
  Last update: 2013-08-07 01:41    [W:0.102 / U:0.152 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site