Nvidia-352.41-rt.patch

De LCAD
Revisão de 00h12min de 30 de novembro de 2017 por Raphael Carneiro (discussão | contribs) (Criou página com 'Copie as linhas abaixo e salve num arquivo de texto com nome: '''nvidia-352.41-rt.patch''' 41a42,43 > #define CONFIG_PREEMPT_RT_FULL 1 > 340,343c342,352 < #if defined(C...')
(dif) ← Edição anterior | Revisão atual (dif) | Versão posterior → (dif)
Ir para: navegação, pesquisa

Copie as linhas abaixo e salve num arquivo de texto com nome: nvidia-352.41-rt.patch

41a42,43
> #define CONFIG_PREEMPT_RT_FULL 1
> 
340,343c342,352
< #if defined(CONFIG_PREEMPT_RT) || defined(CONFIG_PREEMPT_RT_FULL)
< #define NV_CONFIG_PREEMPT_RT 1
< #endif
< 
---
> #if defined(CONFIG_PREEMPT_RT_FULL)
> typedef raw_spinlock_t            nv_spinlock_t;
> #define NV_SPIN_LOCK_INIT(lock)   raw_spin_lock_init(lock)
> #define NV_SPIN_LOCK_IRQ(lock)    raw_spin_lock_irq(lock)
> #define NV_SPIN_UNLOCK_IRQ(lock)  raw_spin_unlock_irq(lock)
> #define NV_SPIN_LOCK_IRQSAVE(lock,flags) raw_spin_lock_irqsave(lock,flags)
> #define NV_SPIN_UNLOCK_IRQRESTORE(lock,flags) raw_spin_unlock_irqrestore(lock,flags)
> #define NV_SPIN_LOCK(lock)        raw_spin_lock(lock)
> #define NV_SPIN_UNLOCK(lock)      raw_spin_unlock(lock)
> #define NV_SPIN_UNLOCK_WAIT(lock) raw_spin_unlock_wait(lock)
> #else
352a362
> #endif
905c915
< #if defined(NV_CONFIG_PREEMPT_RT)
---
> #if defined(CONFIG_PREEMPT_RT_FULL)