diff options
Diffstat (limited to 'ztdummy.c')
-rw-r--r-- | ztdummy.c | 10 |
1 files changed, 5 insertions, 5 deletions
@@ -102,17 +102,17 @@ static int debug = 0; #ifdef LINUX26 #ifdef USE_HIGHRESTIMER -#define ZTDUMMY_TYPE "HRtimer" +#define CLOCK_SRC "HRtimer" struct hrtimer zaptimer; #elif defined(USE_RTC) -#define ZTDUMMY_TYPE "RTC" +#define CLOCK_SRC "RTC" static int rtc_rate = 0; static int current_rate = 0; static int taskletpending = 0; static struct tasklet_struct ztd_tlet; static void ztd_tasklet(unsigned long data); #else /* Linux 2.6, but no RTC or HRTIMER used */ -#define ZTDUMMY_TYPE "Linux26" +#define CLOCK_SRC "Linux26" /* 2.6 kernel timer stuff */ static struct timer_list timer; #endif @@ -120,7 +120,7 @@ static struct timer_list timer; #if LINUX_VERSION_CODE < VERSION_CODE(2,4,5) # error "This kernel is too old: not supported by this file" #endif -#define ZTDUMMY_TYPE "UHCI" +#define CLOCK_SRC "UHCI" /* Old UCHI stuff */ static uhci_desc_t *td; static uhci_t *s; @@ -262,7 +262,7 @@ static int ztdummy_initialize(struct ztdummy *ztd) { /* Zapata stuff */ sprintf(ztd->span.name, "ZTDUMMY/1"); - sprintf(ztd->span.desc, "%s (type: " ZTDUMMY_TYPE ") %d", ztd->span.name, 1); + sprintf(ztd->span.desc, "%s (source: " CLOCK_SRC ") %d", ztd->span.name, 1); sprintf(ztd->chan.name, "ZTDUMMY/%d/%d", 1, 0); ztd->chan.chanpos = 1; ztd->span.chans = &ztd->chan; |