U-Boot Archive on lore.kernel.org
 help / color / mirror / Atom feed
From: Wolfgang Denk <wd@denx.de>
To: u-boot@lists.denx.de
Subject: [U-Boot] [PATCH] Generic udelay() with watchdog support
Date: Sat, 05 Dec 2009 01:09:11 +0100	[thread overview]
Message-ID: <20091205000911.8E8FE3F6E3@gemini.denx.de> (raw)
In-Reply-To: <20091124130921.GA465@zaphod.peppercon.de>

Dear Ingo van Lil,

In message <20091124130921.GA465@zaphod.peppercon.de> you wrote:
> According to the PPC reference implementation the udelay() function is
> responsible for resetting the watchdog timer as frequently as needed.
> Most other architectures do not meet that requirement, so long-running
> operations might result in a watchdog reset.
> 
> This patch adds a generic udelay() function which takes care of
> resetting the watchdog before calling an architecture-specific
> __udelay().
> 
> Signed-off-by: Ingo van Lil <inguin@gmx.de>
> ---
>  board/armltd/integrator/timer.c     |    2 +-
>  board/freescale/mpc8313erdb/sdram.c |    2 +-
>  cpu/arm1136/mx31/timer.c            |    2 +-
>  cpu/arm1136/omap24xx/timer.c        |    2 +-
>  cpu/arm1176/s3c64xx/timer.c         |    2 +-
>  cpu/arm720t/interrupts.c            |    4 +-
>  cpu/arm920t/at91rm9200/timer.c      |    2 +-
>  cpu/arm920t/imx/timer.c             |    2 +-
>  cpu/arm920t/ks8695/timer.c          |    2 +-
>  cpu/arm920t/s3c24x0/timer.c         |    2 +-
>  cpu/arm925t/timer.c                 |    2 +-
>  cpu/arm926ejs/at91/timer.c          |    2 +-
>  cpu/arm926ejs/davinci/timer.c       |    2 +-
>  cpu/arm926ejs/kirkwood/timer.c      |    2 +-
>  cpu/arm926ejs/mx27/timer.c          |    2 +-
>  cpu/arm926ejs/nomadik/timer.c       |    2 +-
>  cpu/arm926ejs/omap/timer.c          |    2 +-
>  cpu/arm926ejs/versatile/timer.c     |    2 +-
>  cpu/arm_cortexa8/omap3/timer.c      |    2 +-
>  cpu/arm_cortexa8/s5pc1xx/timer.c    |    2 +-
>  cpu/at32ap/interrupts.c             |    2 +-
>  cpu/blackfin/interrupts.c           |    2 +-
>  cpu/i386/sc520/sc520_timer.c        |    2 +-
>  cpu/ixp/start.S                     |    4 +-
>  cpu/ixp/timer.c                     |    2 +-
>  cpu/lh7a40x/timer.c                 |    2 +-
>  cpu/mcf547x_8x/slicetimer.c         |    2 +-
>  cpu/pxa/timer.c                     |    2 +-
>  cpu/s3c44b0/timer.c                 |    2 +-
>  cpu/sa1100/timer.c                  |    2 +-
>  examples/api/Makefile               |    1 +
>  examples/api/libgenwrap.c           |    2 +-
>  include/asm-blackfin/delay.h        |    2 +-
>  include/common.h                    |    5 +++-
>  include/exports.h                   |    2 +-
>  lib_generic/Makefile                |    1 +
>  lib_generic/time.c                  |   43 +++++++++++++++++++++++++++++++++++
>  lib_i386/pcat_timer.c               |    2 +-
>  lib_m68k/time.c                     |    4 +-
>  lib_microblaze/time.c               |    4 +-
>  lib_mips/time.c                     |    2 +-
>  lib_nios/time.c                     |    3 +-
>  lib_nios2/time.c                    |    3 +-
>  lib_ppc/time.c                      |   16 ++----------
>  lib_sh/time.c                       |    2 +-
>  lib_sh/time_sh2.c                   |    2 +-
>  lib_sparc/time.c                    |    2 +-
>  47 files changed, 98 insertions(+), 62 deletions(-)
>  create mode 100644 lib_generic/time.c

Applied to "next", thanks.

Best regards,

Wolfgang Denk

-- 
DENX Software Engineering GmbH,     MD: Wolfgang Denk & Detlev Zundel
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd at denx.de
You get a wonderful view from the point of no return.
                                    - Terry Pratchett, _Making_Money_

  reply	other threads:[~2009-12-05  0:09 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-10-05  9:08 [U-Boot] [PATCH] Generic udelay() with watchdog support Ingo van Lil
2009-11-22 22:25 ` Wolfgang Denk
2009-11-24 13:09   ` Ingo van Lil
2009-12-05  0:09     ` Wolfgang Denk [this message]
2009-11-24 13:20   ` Ingo van Lil
2009-11-24 22:25     ` Wolfgang Denk

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=20091205000911.8E8FE3F6E3@gemini.denx.de \
    --to=wd@denx.de \
    --cc=u-boot@lists.denx.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