mode->refresh = 0;  
void fb_var_to_videomode(struct fb_videomode *mode,			 struct fb_var_screeninfo *var){	u32 pixclock, hfreq, htotal, vtotal;	mode->name = NULL;	mode->xres = var->xres;	mode->yres = var->yres;	mode->pixclock = var->pixclock;	mode->hsync_len = var->hsync_len;	mode->vsync_len = var->vsync_len;	mode->left_margin = var->left_margin;	mode->right_margin = var->right_margin;	mode->upper_margin = var->upper_margin;	mode->lower_margin = var->lower_margin;	mode->sync = var->sync;	mode->vmode = var->vmode & FB_VMODE_MASK;	mode->flag = FB_MODE_IS_FROM_VAR;	if (!var->pixclock)		return;	pixclock = PICOS2KHZ(var->pixclock) * 1000;	htotal = var->xres + var->right_margin + var->hsync_len +		var->left_margin;	vtotal = var->yres + var->lower_margin + var->vsync_len +		var->upper_margin;	if (var->vmode & FB_VMODE_INTERLACED)		vtotal /= 2;	if (var->vmode & FB_VMODE_DOUBLE)		vtotal *= 2;	hfreq = pixclock/htotal;	mode->refresh = hfreq/vtotal;}
10457	/local/tlutelli/issta_data/temp/c/2005_temp/2005/10457/8fb6567e347a04d44b57e2b223cc5845859dfc6a/modedb.c/clean/drivers/video/modedb.c