Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 257301
b: refs/heads/master
c: ae7bd11
h: refs/heads/master
i:
  257299: 5226558
v: v3
  • Loading branch information
H. Peter Anvin committed Jul 21, 2011
1 parent 107a054 commit 9f9bdce
Show file tree
Hide file tree
Showing 7 changed files with 11 additions and 10 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 8c400f6ce068366bc3517f1036bb99169cfec9cd
refs/heads/master: ae7bd11b471931752e5609094ca0a49386590524
3 changes: 3 additions & 0 deletions trunk/arch/ia64/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -101,6 +101,9 @@ config GENERIC_IOMAP
bool
default y

config ARCH_CLOCKSOURCE_DATA
def_bool y

config SCHED_OMIT_FRAME_POINTER
bool
default y
Expand Down
2 changes: 0 additions & 2 deletions trunk/arch/ia64/include/asm/clocksource.h
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,6 @@
#ifndef _ASM_IA64_CLOCKSOURCE_H
#define _ASM_IA64_CLOCKSOURCE_H

#define __ARCH_HAS_CLOCKSOURCE_DATA

struct arch_clocksource_data {
void *fsys_mmio; /* used by fsyscall asm code */
};
Expand Down
4 changes: 4 additions & 0 deletions trunk/arch/x86/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -93,6 +93,10 @@ config CLOCKSOURCE_WATCHDOG
config GENERIC_CLOCKEVENTS
def_bool y

config ARCH_CLOCKSOURCE_DATA
def_bool y
depends on X86_64

config GENERIC_CLOCKEVENTS_BROADCAST
def_bool y
depends on X86_64 || (X86_32 && X86_LOCAL_APIC)
Expand Down
2 changes: 0 additions & 2 deletions trunk/arch/x86/include/asm/clocksource.h
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,6 @@

#ifdef CONFIG_X86_64

#define __ARCH_HAS_CLOCKSOURCE_DATA

#define VCLOCK_NONE 0 /* No vDSO clock available. */
#define VCLOCK_TSC 1 /* vDSO should use vread_tsc. */
#define VCLOCK_HPET 2 /* vDSO should use vread_hpet. */
Expand Down
4 changes: 0 additions & 4 deletions trunk/include/asm-generic/clocksource.h

This file was deleted.

4 changes: 3 additions & 1 deletion trunk/include/linux/clocksource.h
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,9 @@
typedef u64 cycle_t;
struct clocksource;

#ifdef CONFIG_ARCH_CLOCKSOURCE_DATA
#include <asm/clocksource.h>
#endif

/**
* struct cyclecounter - hardware abstraction for a free running counter
Expand Down Expand Up @@ -171,7 +173,7 @@ struct clocksource {
u32 shift;
u64 max_idle_ns;

#ifdef __ARCH_HAS_CLOCKSOURCE_DATA
#ifdef CONFIG_ARCH_CLOCKSOURCE_DATA
struct arch_clocksource_data archdata;
#endif

Expand Down

0 comments on commit 9f9bdce

Please sign in to comment.