-
Notifications
You must be signed in to change notification settings - Fork 103
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
drm/dkms: add pcie_bandwidth_available to autoconf
Add pcie_bandwidth_available() into autoconf test whether it's available in the kernel. Change-Id: Ib8626a5a93453214db5045775fca29b341f8891e Signed-off-by: Amber Lin <[email protected]> Reviewed-by: Slava Grigorev <[email protected]>
- Loading branch information
Showing
5 changed files
with
23 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
dnl # | ||
dnl # commit 6db79a88c67e4679d9c1e4a3f05c6385e21f6e9a | ||
dnl # PCI: Add pcie_bandwidth_available() to compute bandwidth available to device | ||
dnl # | ||
AC_DEFUN([AC_AMDGPU_PCIE_BANDWIDTH_AVAILABLE], | ||
[AC_MSG_CHECKING([whether pcie_bandwidth_available() is available]) | ||
AC_KERNEL_TRY_COMPILE_SYMBOL([ | ||
#include <linux/pci.h> | ||
], [ | ||
pcie_bandwidth_available(NULL, NULL, NULL, NULL); | ||
], [pcie_bandwidth_available], [drivers/pci/pci.c], [ | ||
AC_MSG_RESULT(yes) | ||
AC_DEFINE(HAVE_PCIE_BANDWIDTH_AVAILABLE, 1, [pcie_bandwidth_available() is available]) | ||
], [ | ||
AC_MSG_RESULT(no) | ||
]) | ||
]) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters