diff options
author | Mathieu BĂ©rard <mathieu.berard@crans.org> | 2008-08-11 13:52:38 -0400 |
---|---|---|
committer | Adam Jackson <ajax@redhat.com> | 2008-08-11 13:52:38 -0400 |
commit | 9f9268821b13038556fbc029df54ab0e9b2aa77f (patch) | |
tree | e9ca5dd417acfa3a2d9171f6f5e972903dcab88a /dix | |
parent | 2e2ce817ce404a5e000c9750fa96f656fed370b8 (diff) |
The smart scheduler is not optional.
Diffstat (limited to 'dix')
-rw-r--r-- | dix/dispatch.c | 16 | ||||
-rw-r--r-- | dix/events.c | 2 |
2 files changed, 0 insertions, 18 deletions
diff --git a/dix/dispatch.c b/dix/dispatch.c index c04443be0..202d2d99d 100644 --- a/dix/dispatch.c +++ b/dix/dispatch.c @@ -237,7 +237,6 @@ UpdateCurrentTimeIf(void) currentTime = systime; } -#ifdef SMART_SCHEDULE #undef SMART_DEBUG @@ -338,7 +337,6 @@ SmartScheduleClient (int *clientReady, int nready) } return best; } -#endif #define MAJOROP ((xReq *)client->requestBuffer)->reqType @@ -350,9 +348,7 @@ Dispatch(void) ClientPtr client; int nready; HWEventQueuePtr* icheck = checkForInput; -#ifdef SMART_SCHEDULE long start_tick; -#endif nextFreeClientID = 1; nClients = 0; @@ -371,13 +367,11 @@ Dispatch(void) nready = WaitForSomething(clientReady); -#ifdef SMART_SCHEDULE if (nready && !SmartScheduleDisable) { clientReady[0] = SmartScheduleClient (clientReady, nready); nready = 1; } -#endif /***************** * Handle events in round robin fashion, doing input between * each round @@ -399,16 +393,13 @@ Dispatch(void) } isItTimeToYield = FALSE; -#ifdef SMART_SCHEDULE start_tick = SmartScheduleTime; -#endif while (!isItTimeToYield) { if (*icheck[0] != *icheck[1]) ProcessInputEvents(); FlushIfCriticalOutputPending(); -#ifdef SMART_SCHEDULE if (!SmartScheduleDisable && (SmartScheduleTime - start_tick) >= SmartScheduleSlice) { @@ -417,7 +408,6 @@ Dispatch(void) client->smart_priority--; break; } -#endif /* now, finally, deal with client requests */ result = ReadRequestFromClient(client); @@ -465,11 +455,9 @@ Dispatch(void) } } FlushAllOutput(); -#ifdef SMART_SCHEDULE client = clients[clientReady[nready]]; if (client) client->smart_stop_tick = SmartScheduleTime; -#endif } dispatchException &= ~DE_PRIORITYCHANGE; } @@ -3453,9 +3441,7 @@ CloseDownClient(ClientPtr client) if (client->index < nextFreeClientID) nextFreeClientID = client->index; clients[client->index] = NullClient; -#ifdef SMART_SCHEDULE SmartLastClient = NullClient; -#endif dixFreePrivates(client->devPrivates); xfree(client); @@ -3505,12 +3491,10 @@ void InitClient(ClientPtr client, int i, pointer ospriv) #endif client->replyBytesRemaining = 0; client->fontResFunc = NULL; -#ifdef SMART_SCHEDULE client->smart_priority = 0; client->smart_start_tick = SmartScheduleTime; client->smart_stop_tick = SmartScheduleTime; client->smart_check_tick = SmartScheduleTime; -#endif client->clientPtr = NULL; } diff --git a/dix/events.c b/dix/events.c index f04433b65..7a79d292b 100644 --- a/dix/events.c +++ b/dix/events.c @@ -2014,10 +2014,8 @@ TryClientEvents (ClientPtr client, DeviceIntPtr dev, xEvent *pEvents, if (BitIsOn(criticalEvents, type)) { -#ifdef SMART_SCHEDULE if (client->smart_priority < SMART_MAX_PRIORITY) client->smart_priority++; -#endif SetCriticalOutputPending(); } |