blob: 95ae544f8c54f62b33ebf592270911b749465869 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
|
#include <xen/bitops.h>
#include <xen/init.h>
#include <asm/processor.h>
#include "cpu.h"
static void cf_check init_shanghai(struct cpuinfo_x86 *c)
{
if ( cpu_has(c, X86_FEATURE_ITSC) )
{
__set_bit(X86_FEATURE_CONSTANT_TSC, c->x86_capability);
__set_bit(X86_FEATURE_NONSTOP_TSC, c->x86_capability);
__set_bit(X86_FEATURE_TSC_RELIABLE, c->x86_capability);
}
init_intel_cacheinfo(c);
}
const struct cpu_dev shanghai_cpu_dev = {
.c_init = init_shanghai,
};
|