Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 372935
b: refs/heads/master
c: c58b0df
h: refs/heads/master
i:
  372933: 4e86f8b
  372931: 7ee5790
  372927: 1208329
v: v3
  • Loading branch information
Frederic Weisbecker committed Apr 26, 2013
1 parent be3ad69 commit 3eed976
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 9 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: 47aa8b6cbcb839efe2edaa5b50fee21df115d37b
refs/heads/master: c58b0df12a6b5c497637db0676effd00e1fbab13
6 changes: 3 additions & 3 deletions trunk/init/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -306,7 +306,7 @@ choice
# Kind of a stub config for the pure tick based cputime accounting
config TICK_CPU_ACCOUNTING
bool "Simple tick based cputime accounting"
depends on !S390
depends on !S390 && !NO_HZ_FULL
help
This is the basic tick based cputime accounting that maintains
statistics about user, system and idle time spent on per jiffies
Expand All @@ -316,7 +316,7 @@ config TICK_CPU_ACCOUNTING

config VIRT_CPU_ACCOUNTING_NATIVE
bool "Deterministic task and CPU time accounting"
depends on HAVE_VIRT_CPU_ACCOUNTING
depends on HAVE_VIRT_CPU_ACCOUNTING && !NO_HZ_FULL
select VIRT_CPU_ACCOUNTING
help
Select this option to enable more accurate task and CPU time
Expand Down Expand Up @@ -346,7 +346,7 @@ config VIRT_CPU_ACCOUNTING_GEN

config IRQ_TIME_ACCOUNTING
bool "Fine granularity task level IRQ time accounting"
depends on HAVE_IRQ_TIME_ACCOUNTING
depends on HAVE_IRQ_TIME_ACCOUNTING && !NO_HZ_FULL
help
Select this option to enable fine granularity task irq time
accounting. This is done by reading a timestamp on each
Expand Down
4 changes: 3 additions & 1 deletion trunk/kernel/time/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -104,11 +104,13 @@ config NO_HZ_FULL
depends on SMP
# RCU_USER_QS dependency
depends on HAVE_CONTEXT_TRACKING
depends on VIRT_CPU_ACCOUNTING_GEN
# VIRT_CPU_ACCOUNTING_GEN dependency
depends on 64BIT
select NO_HZ_COMMON
select RCU_USER_QS
select RCU_NOCB_CPU
select RCU_NOCB_CPU_ALL
select VIRT_CPU_ACCOUNTING_GEN
select CONTEXT_TRACKING_FORCE
select IRQ_WORK
help
Expand Down
7 changes: 3 additions & 4 deletions trunk/kernel/time/tick-sched.c
Original file line number Diff line number Diff line change
Expand Up @@ -565,12 +565,11 @@ static ktime_t tick_nohz_stop_sched_tick(struct tick_sched *ts,
delta_jiffies = rcu_delta_jiffies;
}
}

/*
* Do not stop the tick, if we are only one off (or less)
* or if the cpu is required for RCU:
* Do not stop the tick, if we are only one off
* or if the cpu is required for rcu
*/
if (!ts->tick_stopped && delta_jiffies <= 1)
if (!ts->tick_stopped && delta_jiffies == 1)
goto out;

/* Schedule the tick, if we are at least one jiffie off */
Expand Down

0 comments on commit 3eed976

Please sign in to comment.