while ((rvosteps > 0)  && ((data->rvo + data->currvid) > reqvid)) { if (data->currvid == 0) { 
while ((rvosteps > 0) && ((data->rvo + data->currvid) > reqvid)) { if (data->currvid == maxvid) { 
static int core_voltage_pre_transition(struct powernow_k8_data *data, u32 reqvid){	u32 rvosteps = data->rvo;	u32 savefid = data->currfid;	dprintk("ph1 (cpu%d): start, currfid 0x%x, currvid 0x%x, reqvid 0x%x, rvo 0x%x\n",		smp_processor_id(),		data->currfid, data->currvid, reqvid, data->rvo);	while (data->currvid > reqvid) {		dprintk("ph1: curr 0x%x, req vid 0x%x\n",			data->currvid, reqvid);		if (decrease_vid_code_by_step(data, reqvid, data->vidmvs))			return 1;	}	while ((rvosteps > 0)  && ((data->rvo + data->currvid) > reqvid)) {		if (data->currvid == 0) {			rvosteps = 0;		} else {			dprintk("ph1: changing vid for rvo, req 0x%x\n",				data->currvid - 1);			if (decrease_vid_code_by_step(data, data->currvid - 1, 1))				return 1;			rvosteps--;		}	}	if (query_current_values_with_pending_wait(data))		return 1;	if (savefid != data->currfid) {		printk(KERN_ERR PFX "ph1 err, currfid changed 0x%x\n", data->currfid);		return 1;	}	dprintk("ph1 complete, currfid 0x%x, currvid 0x%x\n",		data->currfid, data->currvid);	return 0;}
10457	/local/tlutelli/issta_data/temp/c/2005_temp/2005/10457/065b807ca1f5bdbeb081e3cf75ac8de9be8ac212/powernow-k8.c/buggy/arch/i386/kernel/cpu/cpufreq/powernow-k8.c