lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <CAPDyKFoRFKbDSqD2XN4zXx+4T7yytU-1LPg=cLHWvKMXKH8uuA@mail.gmail.com>
Date:   Thu, 9 Feb 2017 11:40:47 +0100
From:   Ulf Hansson <ulf.hansson@...aro.org>
To:     Geert Uytterhoeven <geert+renesas@...der.be>
Cc:     "Rafael J. Wysocki" <rjw@...ysocki.net>,
        Kevin Hilman <khilman@...nel.org>,
        "linux-pm@...r.kernel.org" <linux-pm@...r.kernel.org>,
        "linux-kernel@...r.kernel.org" <linux-kernel@...r.kernel.org>
Subject: Re: [PATCH] PM / Domains: Provide dummy governors if CONFIG_PM_GENERIC_DOMAINS=n

On 8 February 2017 at 19:37, Geert Uytterhoeven <geert+renesas@...der.be> wrote:
> This allows to compile-test drivers that refer to governors (always by
> reference) when CONFIG_PM_GENERIC_DOMAINS=n.
>
> Signed-off-by: Geert Uytterhoeven <geert+renesas@...der.be>

Acked-by: Ulf Hansson <ulf.hansson@...aro.org>

Kind regards
Uffe

> ---
>  include/linux/pm_domain.h | 3 +++
>  1 file changed, 3 insertions(+)
>
> diff --git a/include/linux/pm_domain.h b/include/linux/pm_domain.h
> index 81ece61075dff0e7..5339ed5bd6f9d04a 100644
> --- a/include/linux/pm_domain.h
> +++ b/include/linux/pm_domain.h
> @@ -182,6 +182,9 @@ static inline int pm_genpd_remove(struct generic_pm_domain *genpd)
>  {
>         return -ENOTSUPP;
>  }
> +
> +#define simple_qos_governor            (*(struct dev_power_governor *)(NULL))
> +#define pm_domain_always_on_gov                (*(struct dev_power_governor *)(NULL))
>  #endif
>
>  static inline int pm_genpd_add_device(struct generic_pm_domain *genpd,
> --
> 1.9.1
>

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ