summaryrefslogtreecommitdiff
path: root/Centaur/MSR-C3.c
blob: 1f0d80f34e0c88777c8ab10686b2b1355bdfcf7f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
/*
 *  (C) 2001 Dave Jones.
 *
 *  Licensed under the terms of the GNU GPL License version 2.
 *
 *  Centaur specific parts.
 */
#include <stdio.h>
#include "../x86info.h"
#include "centaur.h"

void dump_C3_MSR (struct cpudata *cpu)
{
	if (!user_is_root)
		return;

	printf("FCR: ");
	dumpmsr (cpu->number, 0x1107, 32);

	printf("Power management: ");
	if (cpu->model==6 || cpu->model==7) {
		printf("Longhaul\n");
		decode_longhaul(cpu);
	}

	if (cpu->model==8 || cpu->model==9) {
		printf("Powersaver\n");
		decode_powersaver(cpu);
	}
}