public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
From: Christian Dietrich <qy03fugy@stud.informatik.uni-erlangen.de>
To: felipe.balbi@nokia.com
Cc: David Howells <dhowells@redhat.com>,
	Thomas Gleixner <tglx@linutronix.de>,
	John Stultz <johnstul@us.ibm.com>,
	"linux-kernel\@vger.kernel.org" <linux-kernel@vger.kernel.org>,
	"vamos-dev\@i4.informatik.uni-erlangen.de" 
	<vamos-dev@i4.informatik.uni-erlangen.de>
Subject: Re: [PATCH 2/4] arch/frv: Removing dead HEARTBEAT config option
Date: Tue, 10 Aug 2010 13:06:26 +0200	[thread overview]
Message-ID: <86zkwuwwul.fsf@peer.zerties.org> (raw)
In-Reply-To: <20100810093537.GC22436@nokia.com> (Felipe Balbi's message of "Tue, 10 Aug 2010 12:35:38 +0300")

[-- Attachment #1: Type: text/plain, Size: 780 bytes --]

Felipe Balbi <felipe.balbi@nokia.com> writes:
> On Tue, Aug 10, 2010 at 11:11:13AM +0200, ext Christian Dietrich wrote:
>>diff --git a/arch/frv/kernel/time.c b/arch/frv/kernel/time.c
>>index 0ddbbae..e86df6c 100644
>>--- a/arch/frv/kernel/time.c
>>+++ b/arch/frv/kernel/time.c
>>@@ -66,12 +66,6 @@ static irqreturn_t timer_interrupt(int irq, void *dummy)
>>
>> 	do_timer(1);
>>
>>-#ifdef CONFIG_HEARTBEAT
>
> should you instead change to CONFIG_LEDS_TRIGGER_HEARTBEAT ?

I didn't know of this config option, but i think this would be better. I
attached a patch for it.

greetz didi
-- 
(λ x . x x) (λ x . x x) -- See how beatiful the lambda is
No documentation is better than bad documentation
-- Das Ausdrucken dieser Mail wird urheberrechtlich verfolgt.

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: 0001-arch-frv-Rename-dead-HEARTBEAT-config-option.patch --]
[-- Type: text/x-diff, Size: 992 bytes --]

>From 36cfe416d7b099097ed3f37bb62134c674fc68ce Mon Sep 17 00:00:00 2001
From: Christian Dietrich <qy03fugy@stud.informatik.uni-erlangen.de>
Date: Tue, 10 Aug 2010 13:02:30 +0200
Subject: [PATCH] arch/frv: Rename dead HEARTBEAT config option

Because CONFIG_HEARTBEAT isn't defined for the frv arch, this block
would be dead. As suggested by Felipe Balbi CONFIG_HEARTBEAT was
replaced by CONFIG_LEDS_TRIGGER_HEARTBEAT.
---
 arch/frv/kernel/time.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/arch/frv/kernel/time.c b/arch/frv/kernel/time.c
index 0ddbbae..d8fff7e 100644
--- a/arch/frv/kernel/time.c
+++ b/arch/frv/kernel/time.c
@@ -66,11 +66,11 @@ static irqreturn_t timer_interrupt(int irq, void *dummy)
 
 	do_timer(1);
 
-#ifdef CONFIG_HEARTBEAT
+#ifdef CONFIG_LEDS_TRIGGER_HEARTBEAT
 	static unsigned short n;
 	n++;
 	__set_LEDS(n);
-#endif /* CONFIG_HEARTBEAT */
+#endif /* CONFIG_LEDS_TRIGGER_HEARTBEAT */
 
 	write_sequnlock(&xtime_lock);
 
-- 
1.7.0.4


  reply	other threads:[~2010-08-10 11:06 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-08-10  9:11 [PATCH 0/4] Removing dead code Christian Dietrich
2010-08-10  9:11 ` [PATCH 1/4] arch/frv: Removing dead RAMKERNEL config option Christian Dietrich
2010-08-10  9:37   ` Felipe Balbi
2010-08-10 10:54     ` Christian Dietrich
2010-08-10 11:54       ` Felipe Balbi
2010-08-10  9:11 ` [PATCH 2/4] arch/frv: Removing dead HEARTBEAT " Christian Dietrich
2010-08-10  9:35   ` Felipe Balbi
2010-08-10 11:06     ` Christian Dietrich [this message]
2010-08-10  9:11 ` [PATCH 3/4] arch/frv: Removing dead NO_KERNEL_MSG " Christian Dietrich
2010-08-10  9:11 ` [PATCH 4/4] arch/frv: Removing dead DEBUG_STACK_USAGE " Christian Dietrich

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=86zkwuwwul.fsf@peer.zerties.org \
    --to=qy03fugy@stud.informatik.uni-erlangen.de \
    --cc=dhowells@redhat.com \
    --cc=felipe.balbi@nokia.com \
    --cc=johnstul@us.ibm.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=tglx@linutronix.de \
    --cc=vamos-dev@i4.informatik.uni-erlangen.de \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox