Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S935148AbZLMBze (ORCPT ); Sat, 12 Dec 2009 20:55:34 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S935049AbZLMBzV (ORCPT ); Sat, 12 Dec 2009 20:55:21 -0500 Received: from earthlight.etchedpixels.co.uk ([81.2.110.250]:53508 "HELO www.etchedpixels.co.uk" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with SMTP id S935052AbZLMBzS (ORCPT ); Sat, 12 Dec 2009 20:55:18 -0500 Date: Sat, 12 Dec 2009 13:50:35 +0000 From: Alan Cox To: Cypher Wu Cc: Mark Brown , linux-kernel@vger.kernel.org Subject: Re: Questions about Watch Dog Timer under Linux. Message-ID: <20091212135035.0d01018d@lxorguk.ukuu.org.uk> In-Reply-To: References: <20091209145919.GH9018@sirena.org.uk> <20091211102159.GB18825@rakim.wolfsonmicro.main> X-Mailer: Claws Mail 3.7.3 (GTK+ 2.16.6; x86_64-redhat-linux-gnu) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 973 Lines: 21 > timer. This type of WDT is widely used in our embedded systems and we > usually install a callback in timer interrupt to clearing WD before > BSP starting the RTOS kernel, and then starting a task to clear WD and > uninstall the callback. > I'm wonder when cope with that type of WD, is there any framework > already in the Linux kernel and booter, or I've to modify them by > myself? Without knowing which boot environment you are using I don't know. For the kernel itself you may need to touch the timer early on in boot (in your platform setup code), then set up the driver early on. There isn't a general framework for this although there may be one I don't know about implemented in some other specific platform. Alan -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/