aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--drivers/ptp/ptp_clock.c1
-rw-r--r--drivers/ptp/ptp_private.h1
2 files changed, 2 insertions, 0 deletions
diff --git a/drivers/ptp/ptp_clock.c b/drivers/ptp/ptp_clock.c
index 966875dcda56..67e628ee0365 100644
--- a/drivers/ptp/ptp_clock.c
+++ b/drivers/ptp/ptp_clock.c
@@ -147,6 +147,7 @@ static int ptp_clock_adjtime(struct posix_clock *pc, struct timex *tx)
147 } else if (tx->modes & ADJ_FREQUENCY) { 147 } else if (tx->modes & ADJ_FREQUENCY) {
148 148
149 err = ops->adjfreq(ops, scaled_ppm_to_ppb(tx->freq)); 149 err = ops->adjfreq(ops, scaled_ppm_to_ppb(tx->freq));
150 ptp->dialed_frequency = tx->freq;
150 } 151 }
151 152
152 return err; 153 return err;
diff --git a/drivers/ptp/ptp_private.h b/drivers/ptp/ptp_private.h
index 4d5b5082c3b1..69d32070cc65 100644
--- a/drivers/ptp/ptp_private.h
+++ b/drivers/ptp/ptp_private.h
@@ -45,6 +45,7 @@ struct ptp_clock {
45 dev_t devid; 45 dev_t devid;
46 int index; /* index into clocks.map */ 46 int index; /* index into clocks.map */
47 struct pps_device *pps_source; 47 struct pps_device *pps_source;
48 long dialed_frequency; /* remembers the frequency adjustment */
48 struct timestamp_event_queue tsevq; /* simple fifo for time stamps */ 49 struct timestamp_event_queue tsevq; /* simple fifo for time stamps */
49 struct mutex tsevq_mux; /* one process at a time reading the fifo */ 50 struct mutex tsevq_mux; /* one process at a time reading the fifo */
50 wait_queue_head_t tsev_wq; 51 wait_queue_head_t tsev_wq;