aboutsummaryrefslogtreecommitdiffstats
path: root/arch/powerpc/kernel/time.c
diff options
context:
space:
mode:
authorThomas Gleixner <tglx@linutronix.de>2014-07-16 17:05:13 -0400
committerJohn Stultz <john.stultz@linaro.org>2014-07-23 18:01:52 -0400
commit4a0e637738f06673725792d74eed67f8779b62c7 (patch)
treea5943ca88cc98cf65d3d2fd22f6311699ed2222b /arch/powerpc/kernel/time.c
parent09ec54429c6d10f87d1f084de53ae2c1c3a81108 (diff)
clocksource: Get rid of cycle_last
cycle_last was added to the clocksource to support the TSC validation. We moved that to the core code, so we can get rid of the extra copy. Signed-off-by: Thomas Gleixner <tglx@linutronix.de> Signed-off-by: John Stultz <john.stultz@linaro.org>
Diffstat (limited to 'arch/powerpc/kernel/time.c')
-rw-r--r--arch/powerpc/kernel/time.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/arch/powerpc/kernel/time.c b/arch/powerpc/kernel/time.c
index 9fff9cdcc519..368ab374d33c 100644
--- a/arch/powerpc/kernel/time.c
+++ b/arch/powerpc/kernel/time.c
@@ -741,7 +741,7 @@ static cycle_t timebase_read(struct clocksource *cs)
741} 741}
742 742
743void update_vsyscall_old(struct timespec *wall_time, struct timespec *wtm, 743void update_vsyscall_old(struct timespec *wall_time, struct timespec *wtm,
744 struct clocksource *clock, u32 mult) 744 struct clocksource *clock, u32 mult, cycle_t cycle_last)
745{ 745{
746 u64 new_tb_to_xs, new_stamp_xsec; 746 u64 new_tb_to_xs, new_stamp_xsec;
747 u32 frac_sec; 747 u32 frac_sec;
@@ -774,7 +774,7 @@ void update_vsyscall_old(struct timespec *wall_time, struct timespec *wtm,
774 * We expect the caller to have done the first increment of 774 * We expect the caller to have done the first increment of
775 * vdso_data->tb_update_count already. 775 * vdso_data->tb_update_count already.
776 */ 776 */
777 vdso_data->tb_orig_stamp = clock->cycle_last; 777 vdso_data->tb_orig_stamp = cycle_last;
778 vdso_data->stamp_xsec = new_stamp_xsec; 778 vdso_data->stamp_xsec = new_stamp_xsec;
779 vdso_data->tb_to_xs = new_tb_to_xs; 779 vdso_data->tb_to_xs = new_tb_to_xs;
780 vdso_data->wtom_clock_sec = wtm->tv_sec; 780 vdso_data->wtom_clock_sec = wtm->tv_sec;