xfree86: compat: re-add TimeCheck() for proprietary nvidia driver
Yet another very internal function that the proprietary Nvidia driver is using for unknown reasons. Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net>
This commit is contained in:
parent
4036b8c163
commit
99a18a6495
|
@ -3,6 +3,7 @@ srcs_xorg_compat = [
|
||||||
'log.c',
|
'log.c',
|
||||||
'nvidiabug.c',
|
'nvidiabug.c',
|
||||||
'ones.c',
|
'ones.c',
|
||||||
|
'timercheck.c',
|
||||||
'xf86Helper.c',
|
'xf86Helper.c',
|
||||||
]
|
]
|
||||||
|
|
||||||
|
|
|
@ -0,0 +1,23 @@
|
||||||
|
#include <dix-config.h>
|
||||||
|
|
||||||
|
#include <X11/Xfuncproto.h>
|
||||||
|
|
||||||
|
#include "os/osdep.h"
|
||||||
|
|
||||||
|
#include "xf86_compat.h"
|
||||||
|
|
||||||
|
/*
|
||||||
|
* needed for NVidia proprietary driver 570.x and 575.x version
|
||||||
|
* force the server to see if any timer callbacks should be called
|
||||||
|
*
|
||||||
|
* this function had been obsolete and removed long ago, but NVidia folks
|
||||||
|
* still didn't do basic maintenance and fixed their driver
|
||||||
|
*/
|
||||||
|
|
||||||
|
_X_EXPORT void TimerCheck(void);
|
||||||
|
|
||||||
|
void TimerCheck(void) {
|
||||||
|
xf86NVidiaBugObsoleteFunc("TimerCheck()");
|
||||||
|
|
||||||
|
DoTimers(GetTimeInMillis());
|
||||||
|
}
|
|
@ -105,7 +105,6 @@ struct _OsTimerRec {
|
||||||
};
|
};
|
||||||
|
|
||||||
static void DoTimer(OsTimerPtr timer, CARD32 now);
|
static void DoTimer(OsTimerPtr timer, CARD32 now);
|
||||||
static void DoTimers(CARD32 now);
|
|
||||||
static void CheckAllTimers(void);
|
static void CheckAllTimers(void);
|
||||||
static volatile struct xorg_list timers;
|
static volatile struct xorg_list timers;
|
||||||
|
|
||||||
|
@ -276,8 +275,7 @@ DoTimer(OsTimerPtr timer, CARD32 now)
|
||||||
TimerSet(timer, 0, newTime, timer->callback, timer->arg);
|
TimerSet(timer, 0, newTime, timer->callback, timer->arg);
|
||||||
}
|
}
|
||||||
|
|
||||||
static void
|
void DoTimers(CARD32 now)
|
||||||
DoTimers(CARD32 now)
|
|
||||||
{
|
{
|
||||||
OsTimerPtr timer;
|
OsTimerPtr timer;
|
||||||
|
|
||||||
|
|
|
@ -225,4 +225,7 @@ Ones(unsigned long mask)
|
||||||
|
|
||||||
#define LIMITCLIENTS 256 /* Must be a power of 2 and <= MAXCLIENTS */
|
#define LIMITCLIENTS 256 /* Must be a power of 2 and <= MAXCLIENTS */
|
||||||
|
|
||||||
|
/* run timers that are expired at timestamp `now` */
|
||||||
|
void DoTimers(CARD32 now);
|
||||||
|
|
||||||
#endif /* _OSDEP_H_ */
|
#endif /* _OSDEP_H_ */
|
||||||
|
|
Loading…
Reference in New Issue