Thread (8 messages) 8 messages, 4 authors, 2012-07-10

Re: [PATCH 1/2] powerpc/watchdog: move booke watchdog param related code to prom.c

From: Kumar Gala <hidden>
Date: 2012-07-10 11:39:39
Also in: linux-watchdog

On May 8, 2012, at 10:46 PM, Bhushan Bharat-R65777 wrote:
quoted
quoted
quoted
quoted
quoted
.org] On Behalf Of Shaohui Xie
Sent: Tuesday, May 08, 2012 11:37 AM
To: linux-watchdog@vger.kernel.org; linuxppc-dev@lists.ozlabs.org
Cc: Xie Shaohui-B21989
Subject: [PATCH 1/2] powerpc/watchdog: move booke watchdog param
related code to prom.c
=20
Currently, BOOKE watchdog code for checking "wdt" and =
"wdt_period"
quoted
quoted
quoted
quoted
quoted
is in setup_32.c, it cannot be used in 64-bit, so move it to a
common place prom.c, which will be shared by 32-bit and 64-bit.
=20
Also, replace the simple_strtoul with kstrtol.
=20
Signed-off-by: Shaohui Xie <redacted>
---
arch/powerpc/kernel/prom.c     |   27 +++++++++++++++++++++++++++
arch/powerpc/kernel/setup_32.c |   24 ------------------------
2 files changed, 27 insertions(+), 24 deletions(-)
=20
Is not setup-common.c is better place to move this?
=20
Move out from setup_32.c does not mean it have to go into
setup-common.c, I need better reason to do this.
=20
=20
What I think that setup_32.c is for 32 bit, setup_64.c is for 64 bit
and setup-common.c is for both.
=20
I am not saying that you move this to setup-common.c. I am asking =
why
quoted
quoted
you have not used setup-common.c ? I am ok even with prom.c.
=20
[Xie Shaohui] I'm not a fan of prom.c, I did this because I see same =
kind of
quoted
early parameters checking is did in this file only, so I thought =
maybe I should
quoted
put them together. And seems setup-common.c is not the place to do =
command line
quoted
checking (I'm not sure about this).
=20
=20
Ok, so you are also not sure.
Let us see what other guys things of this.
Put it in setup-common.c.  prom.c has normally been mostly OF/dts =
related parsing.

- k=
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help