Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 285039
Collapse All | Expand All

(-)nvclock0.8b4/src/backend/nv50.c.orig (+7 lines)
Lines 228-233 Link Here
228
		printf("NV_20008 (0x20008): %08x\n", nv_card->PMC[0x20008/4]);
228
		printf("NV_20008 (0x20008): %08x\n", nv_card->PMC[0x20008/4]);
229
		printf("divider=%f, offset=%f\n", divider, offset);
229
		printf("divider=%f, offset=%f\n", divider, offset);
230
	}
230
	}
231
	
232
	//Temperature support for G92
233
	if(( (nv_card->bios->device_id&0xff00) == 0x600)||( (nv_card->bios->device_id&0xff00) == 0x610))
234
	{
235
		temp = nv_card->PMC[0x20008/4]&0x3fff;
236
		return (-13115 + temp) / 18.7 + 1;
237
	}
231
238
232
	temp = nv_card->PMC[0x20008/4] & 0x1fff;
239
	temp = nv_card->PMC[0x20008/4] & 0x1fff;
233
	return (int)(temp + offset)/divider;
240
	return (int)(temp + offset)/divider;

Return to bug 285039