Bryce, sorry, but I was very quick to remove it after it became evident that it affected something else in the driver when going into screensaver.
The idea was:
#ifdef CONFIG_PREEMPT_RT
#define spin_lock_init(lock) atomic_spin_lock_init(lock)
/* etc */
#endif
Removing the need for a separate nv_spin_lock_init()
Evidently, this called spin_lock_init() where it wasn't supposed to be called.
So what I posted originally is the most solid workaround we have for the time being until the nv-devs fix it internally.
Bryce, sorry, but I was very quick to remove it after it became evident that it affected something else in the driver when going into screensaver.
The idea was: init(lock) atomic_ spin_lock_ init(lock)
#ifdef CONFIG_PREEMPT_RT
#define spin_lock_
/* etc */
#endif
Removing the need for a separate nv_spin_lock_init()
Evidently, this called spin_lock_init() where it wasn't supposed to be called.
So what I posted originally is the most solid workaround we have for the time being until the nv-devs fix it internally.
Regards
Iain