All of lore.kernel.org
 help / color / mirror / Atom feed
From: Alex Deucher <alexdeucher-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
To: Alex Xie <AlexBin.Xie-5C7GfCeVMHo@public.gmane.org>
Cc: amd-gfx list <amd-gfx-PD4FTy7X32lNgt0PjOBp9y5qC8QIuHrW@public.gmane.org>
Subject: Re: [PATCH] drm/amdgpu: Move function amdgpu_has_atpx near other similar functions
Date: Tue, 4 Apr 2017 22:03:56 -0400	[thread overview]
Message-ID: <CADnq5_NWJMd_px0rUE3GDRELR-4G1UH4hFQg8o4YcZ1oshvukA@mail.gmail.com> (raw)
In-Reply-To: <1491339010-28278-1-git-send-email-AlexBin.Xie-5C7GfCeVMHo@public.gmane.org>

On Tue, Apr 4, 2017 at 4:50 PM, Alex Xie <AlexBin.Xie@amd.com> wrote:
> Change-Id: I1266af0697146369c9fb720b241bfa02280571c9
> Signed-off-by: Alex Xie <AlexBin.Xie@amd.com>

Reviewed-by: Alex Deucher <alexander.deucher@amd.com>

> ---
>  drivers/gpu/drm/amd/amdgpu/amdgpu.h     | 2 ++
>  drivers/gpu/drm/amd/amdgpu/amdgpu_kms.c | 6 ------
>  2 files changed, 2 insertions(+), 6 deletions(-)
>
> diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu.h b/drivers/gpu/drm/amd/amdgpu/amdgpu.h
> index 86fba1a..02ee712 100644
> --- a/drivers/gpu/drm/amd/amdgpu/amdgpu.h
> +++ b/drivers/gpu/drm/amd/amdgpu/amdgpu.h
> @@ -1905,12 +1905,14 @@ void amdgpu_program_register_sequence(struct amdgpu_device *adev,
>  bool amdgpu_has_atpx_dgpu_power_cntl(void);
>  bool amdgpu_is_atpx_hybrid(void);
>  bool amdgpu_atpx_dgpu_req_power_for_displays(void);
> +bool amdgpu_has_atpx(void);
>  #else
>  static inline void amdgpu_register_atpx_handler(void) {}
>  static inline void amdgpu_unregister_atpx_handler(void) {}
>  static inline bool amdgpu_has_atpx_dgpu_power_cntl(void) { return false; }
>  static inline bool amdgpu_is_atpx_hybrid(void) { return false; }
>  static inline bool amdgpu_atpx_dgpu_req_power_for_displays(void) { return false; }
> +static inline bool amdgpu_has_atpx(void) { return false; }
>  #endif
>
>  /*
> diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_kms.c b/drivers/gpu/drm/amd/amdgpu/amdgpu_kms.c
> index a2f2b7f..f8d8636 100644
> --- a/drivers/gpu/drm/amd/amdgpu/amdgpu_kms.c
> +++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_kms.c
> @@ -36,12 +36,6 @@
>  #include <linux/pm_runtime.h>
>  #include "amdgpu_amdkfd.h"
>
> -#if defined(CONFIG_VGA_SWITCHEROO)
> -bool amdgpu_has_atpx(void);
> -#else
> -static inline bool amdgpu_has_atpx(void) { return false; }
> -#endif
> -
>  /**
>   * amdgpu_driver_unload_kms - Main unload function for KMS.
>   *
> --
> 1.9.1
>
> _______________________________________________
> amd-gfx mailing list
> amd-gfx@lists.freedesktop.org
> https://lists.freedesktop.org/mailman/listinfo/amd-gfx
_______________________________________________
amd-gfx mailing list
amd-gfx@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/amd-gfx

      parent reply	other threads:[~2017-04-05  2:03 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-04-04 20:50 [PATCH] drm/amdgpu: Move function amdgpu_has_atpx near other similar functions Alex Xie
     [not found] ` <1491339010-28278-1-git-send-email-AlexBin.Xie-5C7GfCeVMHo@public.gmane.org>
2017-04-05  2:03   ` Alex Deucher [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=CADnq5_NWJMd_px0rUE3GDRELR-4G1UH4hFQg8o4YcZ1oshvukA@mail.gmail.com \
    --to=alexdeucher-re5jqeeqqe8avxtiumwx3w@public.gmane.org \
    --cc=AlexBin.Xie-5C7GfCeVMHo@public.gmane.org \
    --cc=amd-gfx-PD4FTy7X32lNgt0PjOBp9y5qC8QIuHrW@public.gmane.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.