From mboxrd@z Thu Jan 1 00:00:00 1970 From: Andrew Cooper Subject: [PATCH v5 1/5] xen/time: Move wallclock_time() declaration into common code Date: Fri, 7 Mar 2014 17:28:00 +0000 Message-ID: <1394213285-9359-2-git-send-email-andrew.cooper3@citrix.com> References: <1394213285-9359-1-git-send-email-andrew.cooper3@citrix.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <1394213285-9359-1-git-send-email-andrew.cooper3@citrix.com> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xen.org Errors-To: xen-devel-bounces@lists.xen.org To: Xen-devel Cc: Keir Fraser , Ian Campbell , Andrew Cooper , Tim Deegan , Stefano Stabellini , Jan Beulich List-Id: xen-devel@lists.xenproject.org It is called from common code, but has architecture specific implementations. Have one declaration instead of two. No functional change. Signed-off-by: Andrew Cooper CC: Keir Fraser CC: Jan Beulich CC: Ian Campbell CC: Stefano Stabellini CC: Tim Deegan --- xen/include/asm-arm/time.h | 3 --- xen/include/asm-x86/time.h | 3 --- xen/include/xen/time.h | 1 + 3 files changed, 1 insertion(+), 6 deletions(-) diff --git a/xen/include/asm-arm/time.h b/xen/include/asm-arm/time.h index 9d302d3..d10c737 100644 --- a/xen/include/asm-arm/time.h +++ b/xen/include/asm-arm/time.h @@ -12,9 +12,6 @@ static inline cycles_t get_cycles (void) return 0; } -struct tm; -struct tm wallclock_time(void); - /* List of timer's IRQ */ enum timer_ppi { diff --git a/xen/include/asm-x86/time.h b/xen/include/asm-x86/time.h index 147b39e..c01b0a2 100644 --- a/xen/include/asm-x86/time.h +++ b/xen/include/asm-x86/time.h @@ -48,9 +48,6 @@ int dom0_pit_access(struct ioreq *ioreq); int cpu_frequency_change(u64 freq); -struct tm; -struct tm wallclock_time(void); - void pit_broadcast_enter(void); void pit_broadcast_exit(void); int pit_broadcast_is_available(void); diff --git a/xen/include/xen/time.h b/xen/include/xen/time.h index 95b4b91..3eb5b63 100644 --- a/xen/include/xen/time.h +++ b/xen/include/xen/time.h @@ -48,6 +48,7 @@ struct tm { int tm_isdst; /* daylight saving time */ }; struct tm gmtime(unsigned long t); +struct tm wallclock_time(void); #define SYSTEM_TIME_HZ 1000000000ULL #define NOW() ((s_time_t)get_s_time()) -- 1.7.10.4