[Home]

Summary:ASTERISK-05864: [patch] RTC support on x86_64 in ztdummy
Reporter:Ivan F. Martinez (ivanfm)Labels:
Date Opened:2005-12-18 05:17:16.000-0600Date Closed:2006-01-09 19:06:23.000-0600
Priority:MinorRegression?No
Status:Closed/CompleteComponents:Core/General
Versions:Frequency of
Occurrence
Related
Issues:
Environment:Attachments:
Description:I'm using astrisk in a kernel 2.6 on AMD64 machine.

I don't have the zaptel board, and want to use ztdummy.

ztdummy use RTC only on i386, and asks for HZ = 1000 in AMD64.

I have made a change to use RTC also in x86_64

****** ADDITIONAL INFORMATION ******

Index: ztdummy.c
===================================================================
--- ztdummy.c   (revision 858)
+++ ztdummy.c   (working copy)
@@ -44,7 +44,7 @@
 * If using an i386 architecture without a PC real-time clock,
 * the #define USE_RTC should be commented out.
 */
-#if defined(__i386__)
+#if defined(__i386__) || defined(__x86_64__)
#if LINUX_VERSION_CODE >= VERSION_CODE(2,6,13)
#define USE_RTC
#else
Comments:By: Matt O'Gorman (mogorman) 2006-01-09 16:43:43.000-0600

hi ivan do you have a disclaimer on file or could you please submit one.  I'd be happy to commit this piece of code, I know its small but we require a disclaimer for all patches even trivial ones.

thanks mog

By: Matt O'Gorman (mogorman) 2006-01-09 18:55:05.000-0600

nevermind was a little over zealous, thanks maf

By: Matt O'Gorman (mogorman) 2006-01-09 19:05:50.000-0600

commited in rev 883 in trunk