diff options
author | Robby Cai <R63905@freescale.com> | 2010-07-30 15:47:45 +0800 |
---|---|---|
committer | Robby Cai <R63905@freescale.com> | 2010-07-30 19:37:53 +0800 |
commit | 06118f74be3dcb4af994804f871094631db50900 (patch) | |
tree | 6807f207c1117db9e304964da090119ce6a35974 /arch | |
parent | 65d3aa2923cc9482298a22693ad3a8e0a73a3937 (diff) |
ENGR00125769 MX50: Fix a bug in WAIT macro
Add missing "break;" for exiting while timeout happens.
Signed-off-by: Robby Cai <R63905@freescale.com>
Diffstat (limited to 'arch')
-rw-r--r-- | arch/arm/mach-mx5/clock_mx50.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/arch/arm/mach-mx5/clock_mx50.c b/arch/arm/mach-mx5/clock_mx50.c index 5f0d862a78ad..3e18c62f8e64 100644 --- a/arch/arm/mach-mx5/clock_mx50.c +++ b/arch/arm/mach-mx5/clock_mx50.c @@ -75,8 +75,10 @@ extern int lp_med_freq; getnstimeofday(&nstimeofday); \ while (!(exp)) { \ getnstimeofday(&curtime); \ - if ((curtime.tv_nsec - nstimeofday.tv_nsec) > (timeout)) \ + if ((curtime.tv_nsec - nstimeofday.tv_nsec) > (timeout)) { \ result = 0; \ + break; \ + } \ } \ result; \ }) |