/* set_fixed_range - checks & updates a fixed-range MTRR if it differs from the value it should have @msr: MSR address of the MTTR which should be checked and updated @changed: pointer which indicates whether the MTRR needed to be changed @msrwords: pointer to the MSR values which the MSR should have  */
static void set_fixed_range(int msr, bool *changed, unsigned int *msrwords)
/* set_fixed_range - checks & updates a fixed-range MTRR if it differs from the value it should have @msr: MSR address of the MTTR which should be checked and updated @changed: pointer which indicates whether the MTRR needed to be changed @msrwords: pointer to the MSR values which the MSR should have  */
static void set_fixed_range(int msr, bool *changed, unsigned int *msrwords)
{
	unsigned lo, hi;
	rdmsr(msr, lo, hi);
	if (lo != msrwords[0] || hi != msrwords[1]) {
		mtrr_wrmsr(msr, msrwords[0], msrwords[1]);
		*changed = true;
	}
}