Comment 15 for bug 413296

Revision history for this message
Iain Buclaw (iainb) wrote :

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.

Regards
Iain