diff options
author | Adam Jackson <ajax@redhat.com> | 2009-07-16 14:29:05 -0400 |
---|---|---|
committer | Adam Jackson <ajax@redhat.com> | 2009-07-17 15:03:57 -0400 |
commit | 053bb92145045e06f8d72c3bddb75806432faa1c (patch) | |
tree | de413d48f6a96a11f0166cebe5e61aaf1bac1c81 | |
parent | 3637945a45d55385335833197b18703379892884 (diff) |
xfree86: Remove xf86SetPriority
GetClocks is pretty doomed to begin with, this really isn't going to
make it worse.
-rw-r--r-- | hw/xfree86/common/xf86Helper.c | 36 |
1 files changed, 0 insertions, 36 deletions
diff --git a/hw/xfree86/common/xf86Helper.c b/hw/xfree86/common/xf86Helper.c index eac819b9c..d6775488c 100644 --- a/hw/xfree86/common/xf86Helper.c +++ b/hw/xfree86/common/xf86Helper.c @@ -201,14 +201,6 @@ xf86AllocateScreen(DriverPtr drv, int flags) xf86Screens[i]->CurrentAccess = &xf86CurrentAccess; xf86Screens[i]->resourceType = MEM_IO; - /* OOps -- What's this ? */ - DebugF("xf86AllocateScreen - xf86Screens[%d]->pScreen = %p\n", - i, xf86Screens[i]->pScreen ); - if ( NULL != xf86Screens[i]->pScreen ) { - DebugF("xf86Screens[%d]->pScreen->CreateWindow = %p\n", - i, xf86Screens[i]->pScreen->CreateWindow ); - } - xf86Screens[i]->DriverFunc = drv->driverFunc; return xf86Screens[i]; @@ -1940,30 +1932,6 @@ xf86MatchPciInstances(const char *driverName, int vendorID, return numFound; } -static void -xf86SetPriority(Bool up) -{ - static int saved_nice; - - if (up) { -#ifdef HAS_SETPRIORITY - saved_nice = getpriority(PRIO_PROCESS, 0); - setpriority(PRIO_PROCESS, 0, -20); -#endif -#if defined(SYSV) || defined(SVR4) || defined(linux) - saved_nice = nice(0); - nice(-20 - saved_nice); -#endif - } else { -#ifdef HAS_SETPRIORITY - setpriority(PRIO_PROCESS, 0, saved_nice); -#endif -#if defined(SYSV) || defined(SVR4) || defined(linux) - nice(20 + saved_nice); -#endif - } -} - /* * xf86GetClocks -- get the dot-clocks via a BIG BAD hack ... */ @@ -1979,8 +1947,6 @@ xf86GetClocks(ScrnInfoPtr pScrn, int num, Bool (*ClockFunc)(ScrnInfoPtr, int), /* First save registers that get written on */ (*ClockFunc)(pScrn, CLK_REG_SAVE); - xf86SetPriority(TRUE); - if (num > MAXCLOCKS) num = MAXCLOCKS; @@ -2028,8 +1994,6 @@ finish: (*BlankScreen)(pScrn, TRUE); } - xf86SetPriority(FALSE); - for (i = 0; i < num; i++) { if (i != knownclkindex) |