Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 108208
b: refs/heads/master
c: 18e4e36
h: refs/heads/master
v: v3
  • Loading branch information
Ingo Molnar committed Jul 31, 2008
1 parent d6b1589 commit 9d35992
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 6 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: 50526968e99afbca34924abcb04658b6dd5c5ea5
refs/heads/master: 18e4e36c66d6edbdefc639692206cdf01e468713
6 changes: 1 addition & 5 deletions trunk/kernel/sched_clock.c
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,6 @@ struct sched_clock_data {
raw_spinlock_t lock;

unsigned long tick_jiffies;
u64 prev_raw;
u64 tick_raw;
u64 tick_gtod;
u64 clock;
Expand Down Expand Up @@ -84,7 +83,6 @@ void sched_clock_init(void)

scd->lock = (raw_spinlock_t)__RAW_SPIN_LOCK_UNLOCKED;
scd->tick_jiffies = now_jiffies;
scd->prev_raw = 0;
scd->tick_raw = 0;
scd->tick_gtod = ktime_now;
scd->clock = ktime_now;
Expand All @@ -105,7 +103,7 @@ static void __update_sched_clock(struct sched_clock_data *scd, u64 now)
long delta_jiffies = now_jiffies - scd->tick_jiffies;
u64 clock = scd->clock;
u64 min_clock, max_clock;
s64 delta = now - scd->prev_raw;
s64 delta = now - scd->tick_raw;

WARN_ON_ONCE(!irqs_disabled());
min_clock = scd->tick_gtod + delta_jiffies * TICK_NSEC;
Expand All @@ -130,7 +128,6 @@ static void __update_sched_clock(struct sched_clock_data *scd, u64 now)
if (unlikely(clock < min_clock))
clock = min_clock;

scd->prev_raw = now;
scd->tick_jiffies = now_jiffies;
scd->clock = clock;
}
Expand Down Expand Up @@ -234,7 +231,6 @@ void sched_clock_idle_wakeup_event(u64 delta_ns)
* rq clock:
*/
__raw_spin_lock(&scd->lock);
scd->prev_raw = now;
scd->clock += delta_ns;
__raw_spin_unlock(&scd->lock);

Expand Down

0 comments on commit 9d35992

Please sign in to comment.