/* Clock ratios multiplied by 10 */
static int clock_ratio[32];
static int eblcr_table[32];
/* Clock ratios multiplied by 10 */
static int clock_ratio[32];
static int eblcr_table[32];
outb(0xFE,0x21); /* TMR0 only */
outb(0xFF,0x80); /* delay */
outb(0xFE,0x21); /* TMR0 only */
outb(0xFF,0x80); /* delay */
bcr2.bits.CLOCKMUL = clock_ratio_index;
local_irq_disable();
wrmsrl (MSR_VIA_BCR2, bcr2.val);
bcr2.bits.CLOCKMUL = clock_ratio_index;
local_irq_disable();
wrmsrl (MSR_VIA_BCR2, bcr2.val);
/* Disable software clock multiplier */
rdmsrl (MSR_VIA_BCR2, bcr2.val);
/* Disable software clock multiplier */
rdmsrl (MSR_VIA_BCR2, bcr2.val);