remove initialization of TSC (refs #362)
This commit is contained in:
@ -1517,9 +1517,3 @@ ihk_mc_user_context_t *lookup_user_context(struct thread *thread)
|
||||
|
||||
return uctx;
|
||||
} /* lookup_user_context() */
|
||||
|
||||
|
||||
void zero_tsc(void)
|
||||
{
|
||||
wrmsr(MSR_IA32_TIME_STAMP_COUNTER, 0);
|
||||
}
|
||||
|
||||
@ -28,7 +28,6 @@
|
||||
|
||||
int num_processors = 1;
|
||||
static volatile int ap_stop = 1;
|
||||
extern void zero_tsc(void);
|
||||
|
||||
static void ap_wait(void)
|
||||
{
|
||||
@ -37,8 +36,6 @@ static void ap_wait(void)
|
||||
cpu_pause();
|
||||
}
|
||||
|
||||
zero_tsc();
|
||||
|
||||
kmalloc_init();
|
||||
sched_init();
|
||||
|
||||
|
||||
@ -315,7 +315,6 @@ static void populate_sysfs(void)
|
||||
|
||||
int host_ikc_inited = 0;
|
||||
extern int num_processors;
|
||||
extern void zero_tsc(void);
|
||||
|
||||
static void post_init(void)
|
||||
{
|
||||
@ -334,10 +333,6 @@ static void post_init(void)
|
||||
ihk_mc_spinlock_init(&syscall_lock);
|
||||
}
|
||||
|
||||
/* Zero TSC.
|
||||
* All AP cores are wait spinning for ap_start() and they will zero
|
||||
* their TSC immediatly. */
|
||||
zero_tsc();
|
||||
ap_start();
|
||||
|
||||
sysfs_init();
|
||||
|
||||
Reference in New Issue
Block a user