clockadj: remove useless clockid parameter.
The clockid parameter to the function to get the system clock's maximum adjustment is redundant, so let us just remove it. Signed-off-by: Richard Cochran <richardcochran@gmail.com>master
parent
4a6ef24fef
commit
1f2c9de982
2
clock.c
2
clock.c
|
@ -592,7 +592,7 @@ struct clock *clock_create(int phc_index, struct interface *iface, int count,
|
|||
} else {
|
||||
c->clkid = CLOCK_REALTIME;
|
||||
c->utc_timescale = 1;
|
||||
max_adj = clockadj_get_max_freq(c->clkid);
|
||||
max_adj = sysclk_max_freq();
|
||||
clockadj_set_leap(c->clkid, 0);
|
||||
}
|
||||
c->leap_set = 0;
|
||||
|
|
|
@ -95,8 +95,9 @@ void clockadj_set_leap(clockid_t clkid, int leap)
|
|||
pr_notice(m);
|
||||
}
|
||||
|
||||
int clockadj_get_max_freq(clockid_t clkid)
|
||||
int sysclk_max_freq(void)
|
||||
{
|
||||
clockid_t clkid = CLOCK_REALTIME;
|
||||
int f = 0;
|
||||
struct timex tx;
|
||||
memset(&tx, 0, sizeof(tx));
|
||||
|
|
|
@ -53,9 +53,9 @@ void clockadj_step(clockid_t clkid, int64_t step);
|
|||
void clockadj_set_leap(clockid_t clkid, int leap);
|
||||
|
||||
/**
|
||||
* Read clock's maximum frequency adjustment.
|
||||
* @param clkid CLOCK_REALTIME.
|
||||
* Read maximum frequency adjustment of the system clock (CLOCK_REALTIME).
|
||||
* @return The maximum frequency adjustment in parts per billion (ppb).
|
||||
*/
|
||||
int clockadj_get_max_freq(clockid_t clkid);
|
||||
int sysclk_max_freq(void);
|
||||
|
||||
#endif
|
||||
|
|
Loading…
Reference in New Issue