remove initialization of TSC (refs #362)

This commit is contained in:
NAKAMURA Gou
2016-03-11 18:40:35 +09:00
parent eb0700359b
commit 70e8dd7979
3 changed files with 0 additions and 14 deletions

View File

@ -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);
}

View File

@ -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();

View File

@ -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();