Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 312387
b: refs/heads/master
c: fee84c4
h: refs/heads/master
i:
  312385: b15060b
  312383: b3b0df5
v: v3
  • Loading branch information
John Stultz authored and Thomas Gleixner committed Jul 15, 2012
1 parent 3842b24 commit e014a71
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 42e71e81f5bb5125ca7c194b5ccf1c93511ff8fb
refs/heads/master: fee84c43e6afc42295ae8058cbbef9ea5633926c
6 changes: 3 additions & 3 deletions trunk/kernel/time/timekeeping.c
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ struct timekeeper {
/* NTP adjusted clock multiplier */
u32 mult;
/* The shift value of the current clocksource. */
int shift;
u32 shift;
/* Number of clock cycles in one NTP interval. */
cycle_t cycle_interval;
/* Number of clock shifted nano seconds in one NTP interval. */
Expand All @@ -45,7 +45,7 @@ struct timekeeper {
s64 ntp_error;
/* Shift conversion between clock shifted nano seconds and
* ntp shifted nano seconds. */
int ntp_error_shift;
u32 ntp_error_shift;

/* The current time */
struct timespec xtime;
Expand Down Expand Up @@ -960,7 +960,7 @@ static void timekeeping_adjust(s64 offset)
*
* Returns the unconsumed cycles.
*/
static cycle_t logarithmic_accumulation(cycle_t offset, int shift)
static cycle_t logarithmic_accumulation(cycle_t offset, u32 shift)
{
u64 nsecps = (u64)NSEC_PER_SEC << timekeeper.shift;
u64 raw_nsecs;
Expand Down

0 comments on commit e014a71

Please sign in to comment.