<feed xmlns='http://www.w3.org/2005/Atom'>
<title>linux/drivers/clocksource, branch v2.6.32.32</title>
<subtitle>Linux kernel source tree</subtitle>
<id>https://git.amat.us/linux/atom/drivers/clocksource?h=v2.6.32.32</id>
<link rel='self' href='https://git.amat.us/linux/atom/drivers/clocksource?h=v2.6.32.32'/>
<link rel='alternate' type='text/html' href='https://git.amat.us/linux/'/>
<updated>2010-09-27T00:21:37Z</updated>
<entry>
<title>clocksource: sh_tmu: compute mult and shift before registration</title>
<updated>2010-09-27T00:21:37Z</updated>
<author>
<name>Aurelien Jarno</name>
<email>aurelien@aurel32.net</email>
</author>
<published>2010-05-31T21:45:48Z</published>
<link rel='alternate' type='text/html' href='https://git.amat.us/linux/commit/?id=cc760d4a8859a02aeb777d508a276d4b1e726eed'/>
<id>urn:sha1:cc760d4a8859a02aeb777d508a276d4b1e726eed</id>
<content type='text'>
commit 66f49121ffa41a19c59965b31b046d8368fec3c7 upstream.

Since commit 98962465ed9e6ea99c38e0af63fe1dcb5a79dc25 ("nohz: Prevent
clocksource wrapping during idle"), the CPU of an R2D board never goes
to idle. This commit assumes that mult and shift are assigned before
the clocksource is registered. As a consequence the safe maximum sleep
time is negative and the CPU never goes into idle.

This patch fixes the problem by moving mult and shift initialization
from sh_tmu_clocksource_enable() to sh_tmu_register_clocksource().

Signed-off-by: Aurelien Jarno &lt;aurelien@aurel32.net&gt;
Signed-off-by: Paul Mundt &lt;lethal@linux-sh.org&gt;
Signed-off-by: Greg Kroah-Hartman &lt;gregkh@suse.de&gt;

</content>
</entry>
<entry>
<title>clocksource: sh_cmt: compute mult and shift before registration</title>
<updated>2010-07-05T18:11:02Z</updated>
<author>
<name>Paul Mundt</name>
<email>lethal@linux-sh.org</email>
</author>
<published>2010-06-02T08:10:44Z</published>
<link rel='alternate' type='text/html' href='https://git.amat.us/linux/commit/?id=98c26ee126baf7360a58391d2ebd152501aeb0cd'/>
<id>urn:sha1:98c26ee126baf7360a58391d2ebd152501aeb0cd</id>
<content type='text'>
commit f4d7c3565c1692c54d9152b52090fe73f0029e37 upstream.

Based on the sh_tmu change in 66f49121ffa41a19c59965b31b046d8368fec3c7
("clocksource: sh_tmu: compute mult and shift before registration").
The same issues impact the sh_cmt driver, so we take the same approach
here.

Signed-off-by: Paul Mundt &lt;lethal@linux-sh.org&gt;
Signed-off-by: Greg Kroah-Hartman &lt;gregkh@suse.de&gt;

</content>
</entry>
<entry>
<title>clocksource: Fix up a registration/IRQ race in the sh drivers.</title>
<updated>2010-03-15T15:49:44Z</updated>
<author>
<name>Paul Mundt</name>
<email>lethal@linux-sh.org</email>
</author>
<published>2010-02-25T07:37:46Z</published>
<link rel='alternate' type='text/html' href='https://git.amat.us/linux/commit/?id=ad10d8be3c5b7fce739d6b4c70ab712ac34d743a'/>
<id>urn:sha1:ad10d8be3c5b7fce739d6b4c70ab712ac34d743a</id>
<content type='text'>
commit da64c2a8dee66ca03f4f3e15d84be7bedf73db3d upstream.

All of the SH clocksource drivers follow the scheme that the IRQ is setup
prior to registering the clockevent. The interrupt handler in the
clockevent cases looks to the event handler function pointer being filled
in by the registration code, permitting us to get in to situations where
asserted IRQs step in to the handler before registration has had a chance
to complete and hitting a NULL pointer deref.

In practice this is not an issue for most platforms, but some of them
with fairly special loaders (or that are chain-loading from another
kernel) may enter in to this situation. This fixes up the oops reported
by Rafael on hp6xx.

Reported-and-tested-by: Rafael Ignacio Zurita &lt;rafaelignacio.zurita@gmail.com&gt;
Signed-off-by: Paul Mundt &lt;lethal@linux-sh.org&gt;
Signed-off-by: Greg Kroah-Hartman &lt;gregkh@suse.de&gt;

</content>
</entry>
<entry>
<title>sh: CMT suspend/resume</title>
<updated>2009-08-15T03:58:45Z</updated>
<author>
<name>Magnus Damm</name>
<email>damm@igel.co.jp</email>
</author>
<published>2009-08-15T02:53:25Z</published>
<link rel='alternate' type='text/html' href='https://git.amat.us/linux/commit/?id=f6431732f128a241b149c0aa85dfec852455ebf9'/>
<id>urn:sha1:f6431732f128a241b149c0aa85dfec852455ebf9</id>
<content type='text'>
This patch updates the SuperH CMT driver with suspend and resume
callbacks for the suspend-to-ram case. This patch stops the CMT
channel at suspend time to avoid unwanted wake up events.

Signed-off-by: Magnus Damm &lt;damm@igel.co.jp&gt;
Signed-off-by: Paul Mundt &lt;lethal@linux-sh.org&gt;
</content>
</entry>
<entry>
<title>clocksource: sh_tmu: Make undefined TCOR behaviour less undefined.</title>
<updated>2009-06-24T12:08:11Z</updated>
<author>
<name>Shin-ichiro KAWASAKI</name>
<email>kawasaki@juno.dti.ne.jp</email>
</author>
<published>2009-06-21T10:56:22Z</published>
<link rel='alternate' type='text/html' href='https://git.amat.us/linux/commit/?id=6f4b67b8ff707147e14ee71045ab25aa286520f2'/>
<id>urn:sha1:6f4b67b8ff707147e14ee71045ab25aa286520f2</id>
<content type='text'>
Avoid undocumented vague TMU behavior when zero value is set to TCOR.

This primarily fixes up issues encountered under qemu with a zero-length
period, while the hardware itself is fairly ambivalent one way or the
other.

Signed-off-by: Shin-ichiro KAWASAKI &lt;kawasaki@juno.dti.ne.jp&gt;
Acked-by: Magnus Damm &lt;damm@igel.co.jp&gt;
Signed-off-by: Paul Mundt &lt;lethal@linux-sh.org&gt;
</content>
</entry>
<entry>
<title>Merge branches 'sh/pci-express-integration', 'sh/rsk-updates', 'sh/platform-updates' and 'sh/perf_counter'</title>
<updated>2009-06-17T07:37:26Z</updated>
<author>
<name>Paul Mundt</name>
<email>lethal@linux-sh.org</email>
</author>
<published>2009-06-17T07:37:26Z</published>
<link rel='alternate' type='text/html' href='https://git.amat.us/linux/commit/?id=3d3638da49211cf15f8aec3030990ac6fba4c693'/>
<id>urn:sha1:3d3638da49211cf15f8aec3030990ac6fba4c693</id>
<content type='text'>
</content>
</entry>
<entry>
<title>sh: turn off irqs when disabling CMT/TMU timers</title>
<updated>2009-06-17T06:39:56Z</updated>
<author>
<name>Magnus Damm</name>
<email>damm@igel.co.jp</email>
</author>
<published>2009-06-17T05:04:04Z</published>
<link rel='alternate' type='text/html' href='https://git.amat.us/linux/commit/?id=be890a1a95fb439594e796f1968f86ee9f36e718'/>
<id>urn:sha1:be890a1a95fb439594e796f1968f86ee9f36e718</id>
<content type='text'>
Modify the CMT and TMU drivers to disable interrupts when
disabling the timer. Only using start/stop bits is not
enough.

This fixes a bootup hang on Migo-R when the CMT is replaced
by TMU for clockevents but the CMT keeps on delivering irqs
even though the timer start bit is off.

Signed-off-by: Magnus Damm &lt;damm@igel.co.jp&gt;
Signed-off-by: Paul Mundt &lt;lethal@linux-sh.org&gt;
</content>
</entry>
<entry>
<title>time: move PIT_TICK_RATE to linux/timex.h</title>
<updated>2009-06-17T02:47:27Z</updated>
<author>
<name>Arnd Bergmann</name>
<email>arnd@arndb.de</email>
</author>
<published>2009-06-16T22:31:12Z</published>
<link rel='alternate' type='text/html' href='https://git.amat.us/linux/commit/?id=08604bd9935dc98fb62ef61d5b7baa7ccc10f8c2'/>
<id>urn:sha1:08604bd9935dc98fb62ef61d5b7baa7ccc10f8c2</id>
<content type='text'>
PIT_TICK_RATE is currently defined in four architectures, but in three
different places.  While linux/timex.h is not the perfect place for it, it
is still a reasonable replacement for those drivers that traditionally use
asm/timex.h to get CLOCK_TICK_RATE and expect it to be the PIT frequency.

Note that for Alpha, the actual value changed from 1193182UL to 1193180UL.
 This is unlikely to make a difference, and probably can only improve
accuracy.  There was a discussion on the correct value of CLOCK_TICK_RATE
a few years ago, after which every existing instance was getting changed
to 1193182.  According to the specification, it should be
1193181.818181...

Signed-off-by: Arnd Bergmann &lt;arnd@arndb.de&gt;
Cc: Richard Henderson &lt;rth@twiddle.net&gt;
Cc: Ivan Kokshaysky &lt;ink@jurassic.park.msu.ru&gt;
Cc: Ralf Baechle &lt;ralf@linux-mips.org&gt;
Cc: Benjamin Herrenschmidt &lt;benh@kernel.crashing.org&gt;
Cc: Ingo Molnar &lt;mingo@elte.hu&gt;
Cc: Thomas Gleixner &lt;tglx@linutronix.de&gt;
Cc: "H. Peter Anvin" &lt;hpa@zytor.com&gt;
Cc: Len Brown &lt;lenb@kernel.org&gt;
Cc: john stultz &lt;johnstul@us.ibm.com&gt;
Cc: Dmitry Torokhov &lt;dtor@mail.ru&gt;
Cc: Takashi Iwai &lt;tiwai@suse.de&gt;
Signed-off-by: Andrew Morton &lt;akpm@linux-foundation.org&gt;
Signed-off-by: Linus Torvalds &lt;torvalds@linux-foundation.org&gt;
</content>
</entry>
<entry>
<title>clocksource: Drop unused irqaction.mask from SH drivers.</title>
<updated>2009-06-14T12:18:24Z</updated>
<author>
<name>Paul Mundt</name>
<email>lethal@linux-sh.org</email>
</author>
<published>2009-06-14T12:18:24Z</published>
<link rel='alternate' type='text/html' href='https://git.amat.us/linux/commit/?id=e7fad451f06e21e74b6051c5ad4917e37460be3a'/>
<id>urn:sha1:e7fad451f06e21e74b6051c5ad4917e37460be3a</id>
<content type='text'>
The irqaction.mask is legacy code that is wholly unused and going away,
so simply drop its use in the SH drivers completely.

Fixes up build failures in -next.

Signed-off-by: Paul Mundt &lt;lethal@linux-sh.org&gt;
</content>
</entry>
<entry>
<title>clocksource: sh_mtu2/cmt_register() should be static.</title>
<updated>2009-05-03T09:05:42Z</updated>
<author>
<name>Paul Mundt</name>
<email>lethal@linux-sh.org</email>
</author>
<published>2009-05-03T09:05:42Z</published>
<link rel='alternate' type='text/html' href='https://git.amat.us/linux/commit/?id=d1fcc0a8db5e47c1abaa783a3e83dbf5f2184969'/>
<id>urn:sha1:d1fcc0a8db5e47c1abaa783a3e83dbf5f2184969</id>
<content type='text'>
Neither of these need to be exported, so just make them static.

Signed-off-by: Paul Mundt &lt;lethal@linux-sh.org&gt;
</content>
</entry>
</feed>
