@@ -63,7 +63,7 @@ static DEFINE_PER_CPU(struct clock_event_device, comparators);
6363 */
6464unsigned long long notrace __kprobes sched_clock (void )
6565{
66- return tod_to_ns (get_clock_monotonic ());
66+ return tod_to_ns (get_tod_clock_monotonic ());
6767}
6868
6969/*
@@ -194,7 +194,7 @@ static void stp_reset(void);
194194
195195void read_persistent_clock (struct timespec * ts )
196196{
197- tod_to_timeval (get_clock () - TOD_UNIX_EPOCH , ts );
197+ tod_to_timeval (get_tod_clock () - TOD_UNIX_EPOCH , ts );
198198}
199199
200200void read_boot_clock (struct timespec * ts )
@@ -204,7 +204,7 @@ void read_boot_clock(struct timespec *ts)
204204
205205static cycle_t read_tod_clock (struct clocksource * cs )
206206{
207- return get_clock ();
207+ return get_tod_clock ();
208208}
209209
210210static struct clocksource clocksource_tod = {
@@ -342,7 +342,7 @@ int get_sync_clock(unsigned long long *clock)
342342
343343 sw_ptr = & get_cpu_var (clock_sync_word );
344344 sw0 = atomic_read (sw_ptr );
345- * clock = get_clock ();
345+ * clock = get_tod_clock ();
346346 sw1 = atomic_read (sw_ptr );
347347 put_cpu_var (clock_sync_word );
348348 if (sw0 == sw1 && (sw0 & 0x80000000U ))
@@ -486,7 +486,7 @@ static void etr_reset(void)
486486 .p0 = 0 , .p1 = 0 , ._pad1 = 0 , .ea = 0 ,
487487 .es = 0 , .sl = 0 };
488488 if (etr_setr (& etr_eacr ) == 0 ) {
489- etr_tolec = get_clock ();
489+ etr_tolec = get_tod_clock ();
490490 set_bit (CLOCK_SYNC_HAS_ETR , & clock_sync_flags );
491491 if (etr_port0_online && etr_port1_online )
492492 set_bit (CLOCK_SYNC_ETR , & clock_sync_flags );
@@ -768,8 +768,8 @@ static int etr_sync_clock(void *data)
768768 __ctl_set_bit (14 , 21 );
769769 __ctl_set_bit (0 , 29 );
770770 clock = ((unsigned long long ) (aib -> edf2 .etv + 1 )) << 32 ;
771- old_clock = get_clock ();
772- if (set_clock (clock ) == 0 ) {
771+ old_clock = get_tod_clock ();
772+ if (set_tod_clock (clock ) == 0 ) {
773773 __udelay (1 ); /* Wait for the clock to start. */
774774 __ctl_clear_bit (0 , 29 );
775775 __ctl_clear_bit (14 , 21 );
@@ -845,7 +845,7 @@ static struct etr_eacr etr_handle_events(struct etr_eacr eacr)
845845 * assume that this can have caused an stepping
846846 * port switch.
847847 */
848- etr_tolec = get_clock ();
848+ etr_tolec = get_tod_clock ();
849849 eacr .p0 = etr_port0_online ;
850850 if (!eacr .p0 )
851851 eacr .e0 = 0 ;
@@ -858,7 +858,7 @@ static struct etr_eacr etr_handle_events(struct etr_eacr eacr)
858858 * assume that this can have caused an stepping
859859 * port switch.
860860 */
861- etr_tolec = get_clock ();
861+ etr_tolec = get_tod_clock ();
862862 eacr .p1 = etr_port1_online ;
863863 if (!eacr .p1 )
864864 eacr .e1 = 0 ;
@@ -974,7 +974,7 @@ static void etr_update_eacr(struct etr_eacr eacr)
974974 etr_eacr = eacr ;
975975 etr_setr (& etr_eacr );
976976 if (dp_changed )
977- etr_tolec = get_clock ();
977+ etr_tolec = get_tod_clock ();
978978}
979979
980980/*
@@ -1012,7 +1012,7 @@ static void etr_work_fn(struct work_struct *work)
10121012 /* Store aib to get the current ETR status word. */
10131013 BUG_ON (etr_stetr (& aib ) != 0 );
10141014 etr_port0 .esw = etr_port1 .esw = aib .esw ; /* Copy status word. */
1015- now = get_clock ();
1015+ now = get_tod_clock ();
10161016
10171017 /*
10181018 * Update the port information if the last stepping port change
@@ -1537,10 +1537,10 @@ static int stp_sync_clock(void *data)
15371537 if (stp_info .todoff [0 ] || stp_info .todoff [1 ] ||
15381538 stp_info .todoff [2 ] || stp_info .todoff [3 ] ||
15391539 stp_info .tmd != 2 ) {
1540- old_clock = get_clock ();
1540+ old_clock = get_tod_clock ();
15411541 rc = chsc_sstpc (stp_page , STP_OP_SYNC , 0 );
15421542 if (rc == 0 ) {
1543- delta = adjust_time (old_clock , get_clock (), 0 );
1543+ delta = adjust_time (old_clock , get_tod_clock (), 0 );
15441544 fixup_clock_comparator (delta );
15451545 rc = chsc_sstpi (stp_page , & stp_info ,
15461546 sizeof (struct stp_sstpi ));
0 commit comments