From 64ab1cdf343a9a69e7e9e64f0bba77c54a94e9d0 Mon Sep 17 00:00:00 2001 From: James Cloos Date: Thu, 6 Dec 2007 15:51:12 -0500 Subject: Add missing PHONY line for automatic ChangeLog generation --- Makefile.am | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Makefile.am b/Makefile.am index 2ae4852..ea2e4a3 100644 --- a/Makefile.am +++ b/Makefile.am @@ -33,6 +33,8 @@ endif EXTRA_DIST = README.ati README.r128 README.ati.sgml README.r128.sgml ChangeLog CLEANFILES = ChangeLog +.PHONY: ChangeLog + ChangeLog: (GIT_DIR=$(top_srcdir)/.git git-log > .changelog.tmp && mv .changelog.tmp ChangeLog; rm -f .changelog.tmp) || (touch ChangeLog; echo 'git directory not found: installing possibly empty changelog.' >&2) -- cgit v1.2.3 From df44f8380268c27d3978c4e91d736f093322b8b8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Michel=20D=C3=A4nzer?= Date: Fri, 7 Dec 2007 09:41:47 +0100 Subject: radeon: Use gettimeofday instead of xf86getsecs. --- src/radeon_driver.c | 23 +++++++++++------------ 1 file changed, 11 insertions(+), 12 deletions(-) diff --git a/src/radeon_driver.c b/src/radeon_driver.c index 3422b66..9bf46ef 100644 --- a/src/radeon_driver.c +++ b/src/radeon_driver.c @@ -90,7 +90,6 @@ /* X and server generic header files */ #include "xf86.h" -#include "xf86_ansic.h" /* For xf86getsecs() */ #include "xf86_OSproc.h" #include "xf86RAC.h" #include "xf86RandR12.h" @@ -805,8 +804,8 @@ static Bool RADEONProbePLLParameters(ScrnInfoPtr pScrn) unsigned xclk, tmp, ref_div; int hTotal, vTotal, num, denom, m, n; float hz, prev_xtal, vclk, xtal, mpll, spll; - long start_secs, start_usecs, stop_secs, stop_usecs, total_usecs; - long to1_secs, to1_usecs, to2_secs, to2_usecs; + long total_usecs; + struct timeval start, stop, to1, to2; unsigned int f1, f2, f3; int tries = 0; @@ -816,32 +815,32 @@ static Bool RADEONProbePLLParameters(ScrnInfoPtr pScrn) if (++tries > 10) goto failed; - xf86getsecs(&to1_secs, &to1_usecs); + gettimeofday(&to1, NULL); f1 = INREG(RADEON_CRTC_CRNT_FRAME); for (;;) { f2 = INREG(RADEON_CRTC_CRNT_FRAME); if (f1 != f2) break; - xf86getsecs(&to2_secs, &to2_usecs); - if ((to2_secs - to1_secs) > 1) { + gettimeofday(&to2, NULL); + if ((to2.tv_sec - to1.tv_sec) > 1) { xf86DrvMsg(pScrn->scrnIndex, X_WARNING, "Clock not counting...\n"); goto failed; } } - xf86getsecs(&start_secs, &start_usecs); + gettimeofday(&start, NULL); for(;;) { f3 = INREG(RADEON_CRTC_CRNT_FRAME); if (f3 != f2) break; - xf86getsecs(&to2_secs, &to2_usecs); - if ((to2_secs - start_secs) > 1) + gettimeofday(&to2, NULL); + if ((to2.tv_sec - start.tv_sec) > 1) goto failed; } - xf86getsecs(&stop_secs, &stop_usecs); + gettimeofday(&stop, NULL); - if ((stop_secs - start_secs) != 0) + if ((stop.tv_sec - start.tv_sec) != 0) goto again; - total_usecs = abs(stop_usecs - start_usecs); + total_usecs = abs(stop.tv_usec - start.tv_usec); if (total_usecs == 0) goto again; hz = 1000000.0/(float)total_usecs; -- cgit v1.2.3 From 5896ca4097d439f59f90f397939132c061c3c364 Mon Sep 17 00:00:00 2001 From: LisaWu Date: Fri, 7 Dec 2007 09:45:05 +0100 Subject: radeon: Use %u instead of %d for unsigned value. --- src/radeon_driver.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/radeon_driver.c b/src/radeon_driver.c index 9bf46ef..50f78eb 100644 --- a/src/radeon_driver.c +++ b/src/radeon_driver.c @@ -1064,7 +1064,7 @@ static void RADEONGetClockInfo(ScrnInfoPtr pScrn) } xf86DrvMsg (pScrn->scrnIndex, X_INFO, - "PLL parameters: rf=%d rd=%d min=%d max=%d; xclk=%d\n", + "PLL parameters: rf=%u rd=%u min=%u max=%u; xclk=%u\n", pll->reference_freq, pll->reference_div, (unsigned)pll->min_pll_freq, (unsigned)pll->max_pll_freq, -- cgit v1.2.3