Something went wrong on our end
-
Jonathan Hanks authored
* Use the proper version of ioremap for each kernel version. * Use a 64bit time call in newer kernels. * Only use unlocked ioctls as the interface in the mbuf/gpstime code.
Jonathan Hanks authored* Use the proper version of ioremap for each kernel version. * Use a 64bit time call in newer kernels. * Only use unlocked ioctls as the interface in the mbuf/gpstime code.
Code owners
Assign users and groups as approvers for specific file changes. Learn more.
ligo_ioremap.h 351 B
/*
* The ioremap call changes names.
*
* In 5.10 we use ioremap, in older versions we use ioremap_nocache
*/
#ifndef ADVLIGORTS_LIGO_IOREMAP_H
#define ADVLIGORTS_LIGO_IOREMAP_H
#if LINUX_VERSION_CODE < KERNEL_VERSION(5, 6, 0)
#define LIGO_IOREMAP ioremap_nocache
#else
#define LIGO_IOREMAP ioremap
#endif
#endif /* ADVLIGORTS_LIGO_IOREMAP_H */