Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 108209
b: refs/heads/master
c: 56b9061
h: refs/heads/master
i:
  108207: d6b1589
v: v3
  • Loading branch information
Ingo Molnar committed Jul 31, 2008
1 parent 9d35992 commit 94ef5ec
Show file tree
Hide file tree
Showing 2 changed files with 5 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: 18e4e36c66d6edbdefc639692206cdf01e468713
refs/heads/master: 56b906126d33904d4d67615d0d5b95dbdf1f27ca
7 changes: 4 additions & 3 deletions trunk/kernel/sched_clock.c
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ void sched_clock_init(void)
* - filter out backward motion
* - use jiffies to generate a min,max window to clip the raw values
*/
static void __update_sched_clock(struct sched_clock_data *scd, u64 now)
static u64 __update_sched_clock(struct sched_clock_data *scd, u64 now)
{
unsigned long now_jiffies = jiffies;
long delta_jiffies = now_jiffies - scd->tick_jiffies;
Expand Down Expand Up @@ -130,6 +130,8 @@ static void __update_sched_clock(struct sched_clock_data *scd, u64 now)

scd->tick_jiffies = now_jiffies;
scd->clock = clock;

return clock;
}

static void lock_double_clock(struct sched_clock_data *data1,
Expand Down Expand Up @@ -174,8 +176,7 @@ u64 sched_clock_cpu(int cpu)
__raw_spin_lock(&scd->lock);
}

__update_sched_clock(scd, now);
clock = scd->clock;
clock = __update_sched_clock(scd, now);

__raw_spin_unlock(&scd->lock);

Expand Down

0 comments on commit 94ef5ec

Please sign in to comment.