diff options
author | Richard Purdie <rpurdie@linux.intel.com> | 2010-08-27 15:14:24 +0100 |
---|---|---|
committer | Richard Purdie <rpurdie@linux.intel.com> | 2010-08-27 15:29:45 +0100 |
commit | 29d6678fd546377459ef75cf54abeef5b969b5cf (patch) | |
tree | 8edd65790e37a00d01c3f203f773fe4b5012db18 /meta/recipes-kernel/linux/linux-omap2-git/beagleboard/timer-suppression.patch | |
parent | da49de6885ee1bc424e70bc02f21f6ab920efb55 (diff) | |
download | poky-29d6678fd546377459ef75cf54abeef5b969b5cf.tar.gz |
Major layout change to the packages directory
Having one monolithic packages directory makes it hard to find things
and is generally overwhelming. This commit splits it into several
logical sections roughly based on function, recipes.txt gives more
information about the classifications used.
The opportunity is also used to switch from "packages" to "recipes"
as used in OpenEmbedded as the term "packages" can be confusing to
people and has many different meanings.
Not all recipes have been classified yet, this is just a first pass
at separating things out. Some packages are moved to meta-extras as
they're no longer actively used or maintained.
Signed-off-by: Richard Purdie <rpurdie@linux.intel.com>
Diffstat (limited to 'meta/recipes-kernel/linux/linux-omap2-git/beagleboard/timer-suppression.patch')
-rw-r--r-- | meta/recipes-kernel/linux/linux-omap2-git/beagleboard/timer-suppression.patch | 43 |
1 files changed, 43 insertions, 0 deletions
diff --git a/meta/recipes-kernel/linux/linux-omap2-git/beagleboard/timer-suppression.patch b/meta/recipes-kernel/linux/linux-omap2-git/beagleboard/timer-suppression.patch new file mode 100644 index 0000000000..04362c96e3 --- /dev/null +++ b/meta/recipes-kernel/linux/linux-omap2-git/beagleboard/timer-suppression.patch | |||
@@ -0,0 +1,43 @@ | |||
1 | diff --git a/kernel/time/tick-sched.c b/kernel/time/tick-sched.c | ||
2 | index b854a89..26f5569 100644 | ||
3 | --- a/kernel/time/tick-sched.c | ||
4 | +++ b/kernel/time/tick-sched.c | ||
5 | @@ -253,6 +253,16 @@ void tick_nohz_stop_sched_tick(void) | ||
6 | |||
7 | /* Schedule the tick, if we are at least one jiffie off */ | ||
8 | if ((long)delta_jiffies >= 1) { | ||
9 | + /* | ||
10 | + * calculate the expiry time for the next timer wheel | ||
11 | + * timer | ||
12 | + */ | ||
13 | + expires = ktime_add_ns(last_update, tick_period.tv64 * | ||
14 | + delta_jiffies); | ||
15 | + | ||
16 | + /* Skip reprogram of event if its not changed */ | ||
17 | + if(ts->tick_stopped && ktime_equal(expires, dev->next_event)) | ||
18 | + goto out2; | ||
19 | |||
20 | if (delta_jiffies > 1) | ||
21 | cpu_set(cpu, nohz_cpu_mask); | ||
22 | @@ -304,12 +314,7 @@ void tick_nohz_stop_sched_tick(void) | ||
23 | goto out; | ||
24 | } | ||
25 | |||
26 | - /* | ||
27 | - * calculate the expiry time for the next timer wheel | ||
28 | - * timer | ||
29 | - */ | ||
30 | - expires = ktime_add_ns(last_update, tick_period.tv64 * | ||
31 | - delta_jiffies); | ||
32 | + /* Mark expiries */ | ||
33 | ts->idle_expires = expires; | ||
34 | |||
35 | if (ts->nohz_mode == NOHZ_MODE_HIGHRES) { | ||
36 | @@ -328,6 +333,7 @@ void tick_nohz_stop_sched_tick(void) | ||
37 | tick_do_update_jiffies64(ktime_get()); | ||
38 | cpu_clear(cpu, nohz_cpu_mask); | ||
39 | } | ||
40 | +out2: | ||
41 | raise_softirq_irqoff(TIMER_SOFTIRQ); | ||
42 | out: | ||
43 | ts->next_jiffies = next_jiffies; | ||