cpts.c (bf9790bcdca582a7a3a0c10550a52ba2a9efc5c9) | cpts.c (b6d08bd81d3044dcd73ea45fa6c28cc049224d41) |
---|---|
1/* 2 * TI Common Platform Time Sync 3 * 4 * Copyright (C) 2012 Richard Cochran <richardcochran@gmail.com> 5 * 6 * This program is free software; you can redistribute it and/or modify 7 * it under the terms of the GNU General Public License as published by 8 * the Free Software Foundation; either version 2 of the License, or --- 284 unchanged lines hidden (view full) --- 293 if (!skb_queue_empty(&cpts->txq)) 294 delay = CPTS_SKB_TX_WORK_TIMEOUT; 295 spin_unlock_irqrestore(&cpts->lock, flags); 296 297 pr_debug("cpts overflow check at %lld.%09lu\n", ts.tv_sec, ts.tv_nsec); 298 return (long)delay; 299} 300 | 1/* 2 * TI Common Platform Time Sync 3 * 4 * Copyright (C) 2012 Richard Cochran <richardcochran@gmail.com> 5 * 6 * This program is free software; you can redistribute it and/or modify 7 * it under the terms of the GNU General Public License as published by 8 * the Free Software Foundation; either version 2 of the License, or --- 284 unchanged lines hidden (view full) --- 293 if (!skb_queue_empty(&cpts->txq)) 294 delay = CPTS_SKB_TX_WORK_TIMEOUT; 295 spin_unlock_irqrestore(&cpts->lock, flags); 296 297 pr_debug("cpts overflow check at %lld.%09lu\n", ts.tv_sec, ts.tv_nsec); 298 return (long)delay; 299} 300 |
301static struct ptp_clock_info cpts_info = { | 301static const struct ptp_clock_info cpts_info = { |
302 .owner = THIS_MODULE, 303 .name = "CTPS timer", 304 .max_adj = 1000000, 305 .n_ext_ts = 0, 306 .n_pins = 0, 307 .pps = 0, 308 .adjfreq = cpts_ptp_adjfreq, 309 .adjtime = cpts_ptp_adjtime, --- 291 unchanged lines hidden --- | 302 .owner = THIS_MODULE, 303 .name = "CTPS timer", 304 .max_adj = 1000000, 305 .n_ext_ts = 0, 306 .n_pins = 0, 307 .pps = 0, 308 .adjfreq = cpts_ptp_adjfreq, 309 .adjtime = cpts_ptp_adjtime, --- 291 unchanged lines hidden --- |