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