forked from richardcochran/linuxptp
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
clock: Introduce a function to switch the PTP Hardware Clock.
When switching clock devices in JBOD mode, we need to be able to reset the servo. The existing servo_reset() function will not serve us well, because in this case we also need to seed the existing frequency offset and limit. This patch adds a new method that simply starts the servo from scratch. In the unlikely event of a resource allocation failure, the method will simply continue to use the previous device, which is better than nothing and certainly preferable to bailing out the program. Signed-off-by: Richard Cochran <[email protected]>
- Loading branch information
1 parent
d70d38a
commit a96797a
Showing
2 changed files
with
45 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters