public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* RT :  nvidia driver and perhaps others
@ 2005-06-15  8:21 Serge Noiraud
  2005-06-15 12:40 ` Valdis.Kletnieks
  0 siblings, 1 reply; 3+ messages in thread
From: Serge Noiraud @ 2005-06-15  8:21 UTC (permalink / raw)
  To: linux-kernel, Ingo Molnar

Hi,

	I try to compile the nvidia driver for my RT kernel.
It does not work anymore.

I have a great question : Do we need to modify all drivers ?

Isn't there a better way to avoid these modifications ?
for example to have the external fonction the same than non RT kernel.
and have an internal link to the new one or something like that ?

I will have the same problem with PVIC drivers I think.

These drivers are proprietary, so I can't modify them.
I think we should change :

1 - local_irq_* to raw_local_irq_*  : is it always true ?
    I done this and now the driver loads OK
    #  define NV_CLI()                      local_irq_disable()
    #  define NV_SAVE_FLAGS(eflags)         local_save_flags(eflags)
    #  define NV_RESTORE_FLAGS(eflags)      local_irq_restore(eflags)


2 - spin_* to raw_spin_*  ?

   #define nv_init_lock(lock)  spin_lock_init(&lock)
   #define nv_lock(lock)       spin_lock(&lock)
   #define nv_unlock(lock)     spin_unlock(&lock)
   #define nv_lock_irq(lock,flags)    spin_lock_irqsave(&lock,flags)
   #define nv_unlock_irq(lock,flags) spin_unlock_irqrestore(&lock,flags)

and other in two files ... too many modifications.


^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2005-06-15 14:47 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-06-15  8:21 RT : nvidia driver and perhaps others Serge Noiraud
2005-06-15 12:40 ` Valdis.Kletnieks
2005-06-15 14:45   ` Steven Rostedt

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox