mirror of
https://github.com/torvalds/linux.git
synced 2024-11-08 05:01:48 +00:00
433bd805e5
The vread field was bloating struct clocksource everywhere except x86_64, and I want to change the way this works on x86_64, so let's split it out into per-arch data. Cc: x86@kernel.org Cc: Clemens Ladisch <clemens@ladisch.de> Cc: linux-ia64@vger.kernel.org Cc: Tony Luck <tony.luck@intel.com> Cc: Fenghua Yu <fenghua.yu@intel.com> Cc: John Stultz <johnstul@us.ibm.com> Cc: Thomas Gleixner <tglx@linutronix.de> Signed-off-by: Andy Lutomirski <luto@mit.edu> Link: http://lkml.kernel.org/r/3ae5ec76a168eaaae63f08a2a1060b91aa0b7759.1310563276.git.luto@mit.edu Signed-off-by: H. Peter Anvin <hpa@linux.intel.com>
17 lines
288 B
C
17 lines
288 B
C
/* x86-specific clocksource additions */
|
|
|
|
#ifndef _ASM_X86_CLOCKSOURCE_H
|
|
#define _ASM_X86_CLOCKSOURCE_H
|
|
|
|
#ifdef CONFIG_X86_64
|
|
|
|
#define __ARCH_HAS_CLOCKSOURCE_DATA
|
|
|
|
struct arch_clocksource_data {
|
|
cycle_t (*vread)(void);
|
|
};
|
|
|
|
#endif /* CONFIG_X86_64 */
|
|
|
|
#endif /* _ASM_X86_CLOCKSOURCE_H */
|