Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 73018a66 authored by Glauber de Oliveira Costa's avatar Glauber de Oliveira Costa Committed by Ingo Molnar
Browse files

x86: move tsc definitions to were they belong



This patch wipes out the definitions of tsc_disable from processor_32.h
and move it to tsc.h, were it belongs

Signed-off-by: default avatarGlauber de Oliveira Costa <gcosta@redhat.com>
Signed-off-by: default avatarIngo Molnar <mingo@elte.hu>
Signed-off-by: default avatarThomas Gleixner <tglx@linutronix.de>
parent 7bcbc78d
Loading
Loading
Loading
Loading
+0 −5
Original line number Diff line number Diff line
@@ -22,9 +22,6 @@
#include <asm/processor-flags.h>
#include <asm/desc_defs.h>

/* flag for disabling the tsc */
extern int tsc_disable;

static inline int desc_empty(const void *ptr)
{
	const u32 *desc = ptr;
@@ -206,8 +203,6 @@ extern int bootloader_type;

#define HAVE_ARCH_PICK_MMAP_LAYOUT

extern void disable_TSC(void);

/*
 * Size of io_bitmap.
 */
+4 −0
Original line number Diff line number Diff line
@@ -16,6 +16,10 @@ typedef unsigned long long cycles_t;

extern unsigned int cpu_khz;
extern unsigned int tsc_khz;
/* flag for disabling the tsc */
extern int tsc_disable;

extern void disable_TSC(void);

static inline cycles_t get_cycles(void)
{