]> git.baikalelectronics.ru Git - kernel.git/commit
[POWERPC] Don't link timer.o for powerpc systems using generic rtc
authorGuennadi Liakhovetski <g.liakhovetski@gmx.de>
Thu, 17 May 2007 08:56:32 +0000 (18:56 +1000)
committerPaul Mackerras <paulus@samba.org>
Mon, 25 Jun 2007 06:58:07 +0000 (16:58 +1000)
commit5136de49b71c6f1e463285c54cce663ccc93a92f
tree14987db825941f75ddf2e2bff6ac434f9e4fb5d4
parenta465a95800ee2cd32f7d31a49f863f065cc0aebd
[POWERPC] Don't link timer.o for powerpc systems using generic rtc

With both generic rtc and powerpc timer suspend / resume code now in the
(powerpc.git) tree, powerpc platforms using the generic timer and enabling
power management will have timer.o linked in the kernel, which they don't
need. Moreover, it will likely WARN_ON(!ppc_md.get_rtc_time), save
zero-time and return no error on suspend...

As a possible solution we can choose not to build timer.o when RTC_CLASS
is enabled.  However, I can imagine systems with 2 rtc's, one served by the
ppc-rtc, another one generic built as a module, in which case using the
ppc-rtc for suspend / resume will be impossible.  Not to say, that such a
configuration would be ugly...

Signed-off-by: G. Liakhovetski <g.liakhovetski@gmx.de>
Signed-off-by: Paul Mackerras <paulus@samba.org>
arch/powerpc/sysdev/Makefile