Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 268970
b: refs/heads/master
c: 7eb4f45
h: refs/heads/master
v: v3
  • Loading branch information
Paul E. McKenney committed Sep 29, 2011
1 parent 3d83717 commit 108703e
Show file tree
Hide file tree
Showing 2 changed files with 6 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: 717f98f0f87c16c1e5768ac8f67c27f3d3535a25
refs/heads/master: 7eb4f4553ceaa6c64da83c8a71d5a991c0188655
10 changes: 5 additions & 5 deletions trunk/kernel/rcutree.c
Original file line number Diff line number Diff line change
Expand Up @@ -488,11 +488,11 @@ static int dyntick_save_progress_counter(struct rcu_data *rdp)
*/
static int rcu_implicit_dynticks_qs(struct rcu_data *rdp)
{
unsigned long curr;
unsigned long snap;
unsigned int curr;
unsigned int snap;

curr = (unsigned long)atomic_add_return(0, &rdp->dynticks->dynticks);
snap = (unsigned long)rdp->dynticks_snap;
curr = (unsigned int)atomic_add_return(0, &rdp->dynticks->dynticks);
snap = (unsigned int)rdp->dynticks_snap;

/*
* If the CPU passed through or entered a dynticks idle phase with
Expand All @@ -502,7 +502,7 @@ static int rcu_implicit_dynticks_qs(struct rcu_data *rdp)
* read-side critical section that started before the beginning
* of the current RCU grace period.
*/
if ((curr & 0x1) == 0 || ULONG_CMP_GE(curr, snap + 2)) {
if ((curr & 0x1) == 0 || UINT_CMP_GE(curr, snap + 2)) {
trace_rcu_fqs(rdp->rsp->name, rdp->gpnum, rdp->cpu, "dti");
rdp->dynticks_fqs++;
return 1;
Expand Down

0 comments on commit 108703e

Please sign in to comment.