mirror of
git://nv-tegra.nvidia.com/linux-nv-oot.git
synced 2025-12-22 09:11:26 +03:00
drivers: Update timer APIs for Linux v6.15
In Linux v6.15, the timer APIs hrtimer_init() and del_timer() have been removed. The hrtimer_setup() was added in Linux v6.13 to replace hrtimer_init() and hrtimer_init() have finally been removed. The functions del_timer()/del_timer_sync() were renamed to timer_delete()/timer_delete_sync() in Linux v6.15. Use conftest to detect these changes and update the drivers as necessary. JIRA LINQPJ14-47 Change-Id: Id3994900384aad4b91155507cda91e04898ab12c Signed-off-by: Jon Hunter <jonathanh@nvidia.com> Reviewed-on: https://git-master.nvidia.com/r/c/linux-nv-oot/+/3336168 (cherry picked from commit ce90abdb8137610988f291cd02ed8cf97bca673f) Reviewed-on: https://git-master.nvidia.com/r/c/linux-nv-oot/+/3499760 Reviewed-by: Brad Griffis <bgriffis@nvidia.com> GVS: buildbot_gerritrpt <buildbot_gerritrpt@nvidia.com> Reviewed-by: svcacv <svcacv@nvidia.com> Tested-by: Brad Griffis <bgriffis@nvidia.com>
This commit is contained in:
committed by
mobile promotions
parent
48373c24ad
commit
2ec6cdcc9b
@@ -139,6 +139,7 @@ NV_CONFTEST_FUNCTION_COMPILE_TESTS += fop_unsigned_offset
|
||||
NV_CONFTEST_FUNCTION_COMPILE_TESTS += genpd_xlate_t_has_const_of_phandle_args
|
||||
NV_CONFTEST_FUNCTION_COMPILE_TESTS += get_file_rcu_has_double_ptr_file_arg
|
||||
NV_CONFTEST_FUNCTION_COMPILE_TESTS += get_user_pages
|
||||
NV_CONFTEST_FUNCTION_COMPILE_TESTS += hrtimer_setup
|
||||
NV_CONFTEST_FUNCTION_COMPILE_TESTS += i2c_driver_struct_probe_without_i2c_device_id_arg
|
||||
NV_CONFTEST_FUNCTION_COMPILE_TESTS += i2c_driver_struct_has_probe_new
|
||||
NV_CONFTEST_FUNCTION_COMPILE_TESTS += i2c_driver_struct_remove_return_type_int
|
||||
@@ -194,6 +195,7 @@ NV_CONFTEST_FUNCTION_COMPILE_TESTS += tegra_dev_iommu_get_stream_id
|
||||
NV_CONFTEST_FUNCTION_COMPILE_TESTS += tegra_ivc_struct_has_iosys_map
|
||||
NV_CONFTEST_FUNCTION_COMPILE_TESTS += thermal_zone_device_priv
|
||||
NV_CONFTEST_FUNCTION_COMPILE_TESTS += thermal_zone_for_each_trip
|
||||
NV_CONFTEST_FUNCTION_COMPILE_TESTS += timer_delete
|
||||
NV_CONFTEST_FUNCTION_COMPILE_TESTS += tty_operations_struct_send_xchar_has_u8_arg
|
||||
NV_CONFTEST_FUNCTION_COMPILE_TESTS += tty_operations_struct_write_has_u8_ptr_arg
|
||||
NV_CONFTEST_FUNCTION_COMPILE_TESTS += tty_operations_struct_set_termios_has_const_ktermios_arg
|
||||
|
||||
@@ -7496,6 +7496,22 @@ compile_test() {
|
||||
compile_check_conftest "$CODE" "NV_GPIO_DEVICE_GET_CHIP_PRESENT" "" "functions"
|
||||
;;
|
||||
|
||||
hrtimer_setup)
|
||||
#
|
||||
# Determine if the function hrtimer_setup() is present.
|
||||
#
|
||||
# This change was made in Linux v6.13 by commit 908a1d775422
|
||||
# ("hrtimers: Introduce hrtimer_setup() to replace hrtimer_init()").
|
||||
#
|
||||
CODE="
|
||||
#include <linux/hrtimer.h>
|
||||
bool conftest_hrtimer_setup(void) {
|
||||
return hrtimer_setup();
|
||||
}"
|
||||
|
||||
compile_check_conftest "$CODE" "NV_HRTIMER_SETUP_PRESENT" "" "functions"
|
||||
;;
|
||||
|
||||
netif_set_tso_max_size)
|
||||
#
|
||||
# Determine if netif_set_tso_max_size() function is present
|
||||
@@ -8302,6 +8318,22 @@ compile_test() {
|
||||
compile_check_conftest "$CODE" "NV_TEGRA_DEV_IOMMU_GET_STREAM_ID_PRESENT" "" "functions"
|
||||
;;
|
||||
|
||||
timer_delete)
|
||||
#
|
||||
# Determine if the function timer_delete() is present.
|
||||
#
|
||||
# This change was made in Linux v6.15 by commit 8fa7292fee5c
|
||||
# ("treewide: Switch/rename to timer_delete[_sync]()").
|
||||
#
|
||||
CODE="
|
||||
#include <linux/timer.h>
|
||||
bool conftest_timer_delete(void) {
|
||||
return timer_delete();
|
||||
}"
|
||||
|
||||
compile_check_conftest "$CODE" "NV_TIMER_DELETE_PRESENT" "" "functions"
|
||||
;;
|
||||
|
||||
tty_operations_struct_send_xchar_has_u8_arg)
|
||||
#
|
||||
# Determine if the struct tty_operations::send_xchar argument is of type u8.
|
||||
|
||||
Reference in New Issue
Block a user