Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 57085
b: refs/heads/master
c: 8b7e157
h: refs/heads/master
i:
  57083: 99eb82f
v: v3
  • Loading branch information
Michael S. Tsirkin authored and Roland Dreier committed May 29, 2007
1 parent e9076ba commit e0e9262
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 34 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: eaad084bb0f3a6259e56400cd45d061dbf040600
refs/heads/master: 8b7e15772a286d0ef8e4f8eca422ce5368b6fa97
6 changes: 3 additions & 3 deletions trunk/drivers/infiniband/hw/mthca/mthca_qp.c
Original file line number Diff line number Diff line change
Expand Up @@ -2284,10 +2284,10 @@ void mthca_free_err_wqe(struct mthca_dev *dev, struct mthca_qp *qp, int is_send,
struct mthca_next_seg *next;

/*
* For SRQs, all WQEs generate a CQE, so we're always at the
* end of the doorbell chain.
* For SRQs, all receive WQEs generate a CQE, so we're always
* at the end of the doorbell chain.
*/
if (qp->ibqp.srq) {
if (qp->ibqp.srq && !is_send) {
*new_wqe = 0;
return;
}
Expand Down
6 changes: 0 additions & 6 deletions trunk/include/linux/timer.h
Original file line number Diff line number Diff line change
Expand Up @@ -68,12 +68,6 @@ extern int del_timer(struct timer_list * timer);
extern int __mod_timer(struct timer_list *timer, unsigned long expires);
extern int mod_timer(struct timer_list *timer, unsigned long expires);

/*
* The jiffies value which is added to now, when there is no timer
* in the timer wheel:
*/
#define NEXT_TIMER_MAX_DELTA ((1UL << 30) - 1)

/*
* Return when the next timer-wheel timeout occurs (in absolute jiffies),
* locks the timer base:
Expand Down
16 changes: 1 addition & 15 deletions trunk/kernel/time/tick-sched.c
Original file line number Diff line number Diff line change
Expand Up @@ -247,28 +247,14 @@ void tick_nohz_stop_sched_tick(void)
if (cpu == tick_do_timer_cpu)
tick_do_timer_cpu = -1;

ts->idle_sleeps++;

/*
* delta_jiffies >= NEXT_TIMER_MAX_DELTA signals that
* there is no timer pending or at least extremly far
* into the future (12 days for HZ=1000). In this case
* we simply stop the tick timer:
*/
if (unlikely(delta_jiffies >= NEXT_TIMER_MAX_DELTA)) {
ts->idle_expires.tv64 = KTIME_MAX;
if (ts->nohz_mode == NOHZ_MODE_HIGHRES)
hrtimer_cancel(&ts->sched_timer);
goto out;
}

/*
* calculate the expiry time for the next timer wheel
* timer
*/
expires = ktime_add_ns(last_update, tick_period.tv64 *
delta_jiffies);
ts->idle_expires = expires;
ts->idle_sleeps++;

if (ts->nohz_mode == NOHZ_MODE_HIGHRES) {
hrtimer_start(&ts->sched_timer, expires,
Expand Down
10 changes: 1 addition & 9 deletions trunk/kernel/timer.c
Original file line number Diff line number Diff line change
Expand Up @@ -666,7 +666,7 @@ static inline void __run_timers(tvec_base_t *base)
static unsigned long __next_timer_interrupt(tvec_base_t *base)
{
unsigned long timer_jiffies = base->timer_jiffies;
unsigned long expires = timer_jiffies + NEXT_TIMER_MAX_DELTA;
unsigned long expires = timer_jiffies + (LONG_MAX >> 1);
int index, slot, array, found = 0;
struct timer_list *nte;
tvec_t *varray[4];
Expand Down Expand Up @@ -752,14 +752,6 @@ static unsigned long cmp_next_hrtimer_event(unsigned long now,

tsdelta = ktime_to_timespec(hr_delta);
delta = timespec_to_jiffies(&tsdelta);

/*
* Limit the delta to the max value, which is checked in
* tick_nohz_stop_sched_tick():
*/
if (delta > NEXT_TIMER_MAX_DELTA)
delta = NEXT_TIMER_MAX_DELTA;

/*
* Take rounding errors in to account and make sure, that it
* expires in the next tick. Otherwise we go into an endless
Expand Down

0 comments on commit e0e9262

Please sign in to comment.