diff for duplicates of <20090602075409.GA19294@linux-sh.org> diff --git a/a/1.txt b/N1/1.txt index bc826c8..30a8351 100644 --- a/a/1.txt +++ b/N1/1.txt @@ -115,7 +115,7 @@ index 80189f6..f7243f2 100644 /*[Clocksource internal variables]--------- * curr_clocksource: @@ -362,6 +364,9 @@ static struct clocksource *select_clocksource(void) - if (next = curr_clocksource) + if (next == curr_clocksource) return NULL; + if (next->flags & CLOCK_SOURCE_USE_FOR_SCHED_CLOCK) @@ -126,7 +126,7 @@ index 80189f6..f7243f2 100644 @@ -440,7 +445,21 @@ void clocksource_unregister(struct clocksource *cs) list_del(&cs->list); - if (clocksource_override = cs) + if (clocksource_override == cs) clocksource_override = NULL; + next_clocksource = select_clocksource(); @@ -136,7 +136,7 @@ index 80189f6..f7243f2 100644 + * clocksource for sched_clocksource and we are unregistering + * it, switch back to jiffies. + */ -+ if (sched_clocksource = cs) { ++ if (sched_clocksource == cs) { + rcu_assign_pointer(sched_clocksource, &clocksource_jiffies); + spin_unlock_irqrestore(&clocksource_lock, flags); + synchronize_rcu(); diff --git a/a/content_digest b/N1/content_digest index 99017df..db684ff 100644 --- a/a/content_digest +++ b/N1/content_digest @@ -4,7 +4,7 @@ "ref\01243928495.23657.5642.camel@twins\0" "From\0Paul Mundt <lethal@linux-sh.org>\0" "Subject\0Re: [PATCH] sched: sched_clock() clocksource handling.\0" - "Date\0Tue, 02 Jun 2009 07:54:09 +0000\0" + "Date\0Tue, 2 Jun 2009 16:54:09 +0900\0" "To\0Peter Zijlstra <peterz@infradead.org>\0" "Cc\0Ingo Molnar <mingo@elte.hu>" Thomas Gleixner <tglx@linutronix.de> @@ -136,7 +136,7 @@ " /*[Clocksource internal variables]---------\n" " * curr_clocksource:\n" "@@ -362,6 +364,9 @@ static struct clocksource *select_clocksource(void)\n" - " \tif (next = curr_clocksource)\n" + " \tif (next == curr_clocksource)\n" " \t\treturn NULL;\n" " \n" "+\tif (next->flags & CLOCK_SOURCE_USE_FOR_SCHED_CLOCK)\n" @@ -147,7 +147,7 @@ " \n" "@@ -440,7 +445,21 @@ void clocksource_unregister(struct clocksource *cs)\n" " \tlist_del(&cs->list);\n" - " \tif (clocksource_override = cs)\n" + " \tif (clocksource_override == cs)\n" " \t\tclocksource_override = NULL;\n" "+\n" " \tnext_clocksource = select_clocksource();\n" @@ -157,7 +157,7 @@ "+\t * clocksource for sched_clocksource and we are unregistering\n" "+\t * it, switch back to jiffies.\n" "+\t */\n" - "+\tif (sched_clocksource = cs) {\n" + "+\tif (sched_clocksource == cs) {\n" "+\t\trcu_assign_pointer(sched_clocksource, &clocksource_jiffies);\n" "+\t\tspin_unlock_irqrestore(&clocksource_lock, flags);\n" "+\t\tsynchronize_rcu();\n" @@ -181,4 +181,4 @@ " \n" struct clocksource clocksource_jiffies = { -57ffb823f143e55cafee9bee4d764616e7b88c3feb367c33dc40b9eb77d61d11 +b8da32313b48d7ee7a9c2b65f02133865b5375e207131d2d3f47cd5e6a459628
This is an external index of several public inboxes, see mirroring instructions on how to clone and mirror all data and code used by this external index.