mirror of
git://nv-tegra.nvidia.com/linux-nv-oot.git
synced 2025-12-22 17:25:35 +03:00
conftest: add devfreq_has_suspend_freq test
Bug 5297893 Change-Id: I74388d308fdeb6673ecd7b6354971285ba6e3aa0 Signed-off-by: Johnny Liu <johnliu@nvidia.com> Reviewed-on: https://git-master.nvidia.com/r/c/linux-nv-oot/+/3369019 Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com> Tested-by: mobile promotions <svcmobile_promotions@nvidia.com> Reviewed-by: Rajesh Devaraj <rdevaraj@nvidia.com> Reviewed-by: Vijayakumar Subbu <vsubbu@nvidia.com> GVS: buildbot_gerritrpt <buildbot_gerritrpt@nvidia.com>
This commit is contained in:
@@ -6956,6 +6956,23 @@ compile_test() {
|
||||
compile_check_conftest "$CODE" "NV_DEVFREQ_HAS_FREQ_TABLE" "" "types"
|
||||
;;
|
||||
|
||||
devfreq_has_suspend_freq)
|
||||
#
|
||||
# Determine if the 'devfreq' structure has 'suspend_freq'
|
||||
#
|
||||
# Commit 83f8ca45afbf ("PM / devfreq: add support for
|
||||
# suspend/resume of a devfreq device") updated the devfreq
|
||||
# and add the suspend_freq field in v5.0.
|
||||
#
|
||||
CODE="
|
||||
#include <linux/devfreq.h>
|
||||
int conftest_devfreq_has_suspend_freq(void) {
|
||||
return offsetof(struct devfreq, suspend_freq);
|
||||
}
|
||||
"
|
||||
compile_check_conftest "$CODE" "NV_DEVFREQ_HAS_SUSPEND_FREQ" "" "types"
|
||||
;;
|
||||
|
||||
device_add_disk_has_int_return_type)
|
||||
#
|
||||
# Determine if the function device_add_disk() returns an integer.
|
||||
|
||||
Reference in New Issue
Block a user