Skip to content

Commit

Permalink
x86: move tsc definitions to were they belong
Browse files Browse the repository at this point in the history
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: Glauber de Oliveira Costa <gcosta@redhat.com>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
  • Loading branch information
Glauber de Oliveira Costa authored and Ingo Molnar committed Jan 30, 2008
1 parent 7bcbc78 commit 73018a6
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 5 deletions.
5 changes: 0 additions & 5 deletions include/asm-x86/processor_32.h
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -206,8 +203,6 @@ extern int bootloader_type;

#define HAVE_ARCH_PICK_MMAP_LAYOUT

extern void disable_TSC(void);

/*
* Size of io_bitmap.
*/
Expand Down
4 changes: 4 additions & 0 deletions include/asm-x86/tsc.h
Original file line number Diff line number Diff line change
Expand Up @@ -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)
{
Expand Down

0 comments on commit 73018a6

Please sign in to comment.