]> git.baikalelectronics.ru Git - kernel.git/commit
time: ntp: simplify ntp_tick_adj calculations
authorIngo Molnar <mingo@elte.hu>
Sun, 22 Feb 2009 15:03:37 +0000 (16:03 +0100)
committerIngo Molnar <mingo@elte.hu>
Wed, 25 Feb 2009 17:38:16 +0000 (18:38 +0100)
commite2c38897f663bcd174619bd24d3895ba04b8da90
tree49c563db54f77883dc5cd0ff1e381cf80898c0a5
parent363d6452b71b3559103844f20aaf4853b16eda53
time: ntp: simplify ntp_tick_adj calculations

Impact: micro-optimization

Convert the (internal) ntp_tick_adj value we store from unscaled
units to scaled units. This is a constant that we never modify,
so scaling it up once during bootup is enough - we dont have to
do it for every adjustment step.

Signed-off-by: Ingo Molnar <mingo@elte.hu>
kernel/time/ntp.c