summaryrefslogtreecommitdiff
path: root/src/radeon_driver.c
diff options
context:
space:
mode:
authorThomas Hilber <sparkie@lowbyte.de>2009-03-23 12:43:00 +0100
committerPaul Menzel <paulepanter@users.sourceforge.net>2009-06-06 14:54:16 +0200
commit0ce5b1252eba278a863e31883019fdd914573ad1 (patch)
tree6385f6947d5a819f4adc9b049d30d7ce8c067a71 /src/radeon_driver.c
parentad313ba2fe19c2bdf1d4d914cad917d6863c5a3f (diff)
downloadxf86-video-ati-frc-upstream-lenny-with-frc-patches.tar.gz
xf86-video-ati-frc-upstream-lenny-with-frc-patches.tar.bz2
Now automatically raises Xserver sched prio for single processor systems.upstream-lenny-with-frc-patches
Signed-off-by: Thomas Hilber <sparkie@lowbyte.de> Signed-off-by: Paul Menzel <paulepanter@users.sourceforge.net>
Diffstat (limited to 'src/radeon_driver.c')
-rw-r--r--src/radeon_driver.c63
1 files changed, 1 insertions, 62 deletions
diff --git a/src/radeon_driver.c b/src/radeon_driver.c
index 0bba6f9..b6e1990 100644
--- a/src/radeon_driver.c
+++ b/src/radeon_driver.c
@@ -111,8 +111,6 @@
#include "radeon_chipset_gen.h"
-#include <errno.h>
-#include "sys/resource.h"
#include "radeon_chipinfo_gen.h"
/* Forward definitions for driver functions */
@@ -194,10 +192,7 @@ static const OptionInfoRec RADEONOptions[] = {
{ OPTION_IGNORE_LID_STATUS, "IgnoreLidStatus", OPTV_BOOLEAN, {0}, FALSE },
{ OPTION_DEFAULT_TVDAC_ADJ, "DefaultTVDACAdj", OPTV_BOOLEAN, {0}, FALSE },
{ OPTION_INT10, "Int10", OPTV_BOOLEAN, {0}, FALSE },
- { OPTION_SYNC_FIELDS, "SyncFields", OPTV_BOOLEAN, {0}, FALSE },
- { OPTION_SCHED_PRIO, "SF_SchedPrio", OPTV_INTEGER, {0}, FALSE },
- { OPTION_SYF_DEBUG, "SF_Debug", OPTV_BOOLEAN, {0}, FALSE },
- { -1, NULL, OPTV_NONE, {0}, FALSE }
+ { -1, NULL, OPTV_NONE, {0}, FALSE }
};
const OptionInfoRec *RADEONOptionsWeak(void) { return RADEONOptions; }
@@ -2668,7 +2663,6 @@ Bool RADEONPreInit(ScrnInfoPtr pScrn, int flags)
int crtc_max_X, crtc_max_Y;
RADEONEntPtr pRADEONEnt;
DevUnion* pPriv;
- MessageType from = X_PROBED;
xf86DrvMsgVerb(pScrn->scrnIndex, X_INFO, RADEON_LOGLEVEL_DEBUG,
"RADEONPreInit\n");
@@ -2947,61 +2941,6 @@ Bool RADEONPreInit(ScrnInfoPtr pScrn, int flags)
goto fail;
}
- /* read sync fields options */
- if (xf86GetOptValBool(info->Options, OPTION_SYNC_FIELDS, &info->sync_fields)) {
- from = X_CONFIG;
- } else {
- info->sync_fields = TRUE;
- from = X_DEFAULT;
- }
- xf86DrvMsg(pScrn->scrnIndex, from, "sync fields %sactivated\n",
- info->sync_fields ? "" : "de");
- if (xf86GetOptValInteger(info->Options, OPTION_SCHED_PRIO, &info->SchedPrio)) {
- from = X_CONFIG;
- } else {
- info->SchedPrio = 0;
- from = X_DEFAULT;
- }
- xf86DrvMsg(pScrn->scrnIndex, from, "scheduling priority requested %d\n",
- info->SchedPrio);
- if (xf86GetOptValBool(info->Options, OPTION_SYF_DEBUG, &info->SYF_debug)) {
- from = X_CONFIG;
- } else {
- info->SYF_debug = FALSE;
- from = X_DEFAULT;
- }
- xf86DrvMsg(pScrn->scrnIndex, from, "sync fields debug %sactivated\n",
- info->SYF_debug ? "" : "de");
-
- /* control sync fields options consistency */
- if (!(pScrn->currentMode->Flags & V_INTERLACE)
- && info->sync_fields) {
- xf86DrvMsg(pScrn->scrnIndex, X_ERROR, "Cannot support sync fields on non interlaced displays, disabled\n");
- info->sync_fields = 0;
- }
-
- /*
- * sync_fields only works with
- * Modeline "720x576_50i" 13.875 720 744 808 888 576 580 585 625 -hsync -vsync interlace
- */
- if ((pScrn->currentMode->Clock != 13875
- || pScrn->currentMode->HDisplay != 720
- || pScrn->currentMode->VDisplay != 576)
- && info->sync_fields) {
- xf86DrvMsg(pScrn->scrnIndex, X_ERROR, "Cannot support sync fields with current timing, disabled\n");
- info->sync_fields = 0;
- }
- if (info->sync_fields) {
- if (info->SchedPrio) {
- if (setpriority(PRIO_PROCESS, 0, info->SchedPrio)) {
- xf86DrvMsg(pScrn->scrnIndex, X_ERROR,
- "failed to setpriority as requested: %s\n", strerror(errno));
- } else {
- xf86DrvMsg(pScrn->scrnIndex, X_INFO,
- "set scheduling priority to %d\n", getpriority(PRIO_PROCESS, 0));
- }
- }
- }
/* Free int10 info */
if (pInt10)