From: Julia Lawall Date: Wed, 30 Jan 2008 12:32:17 +0000 (+0100) Subject: arch/x86/ia32: use time_before, time_before_eq, etc. X-Git-Tag: v2.6.25-rc1~1143^2~458 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=e5fc3161969b3c82c8c61af8c8d360e39977ae2e;p=pandora-kernel.git arch/x86/ia32: use time_before, time_before_eq, etc. The functions time_before, time_before_eq, time_after, and time_after_eq are more robust for comparing jiffies against other values. A simplified version of the semantic patch making this change is as follows: (http://www.emn.fr/x-info/coccinelle/) // @ change_compare_np @ expression E; @@ ( - jiffies <= E + time_before_eq(jiffies,E) | - jiffies >= E + time_after_eq(jiffies,E) | - jiffies < E + time_before(jiffies,E) | - jiffies > E + time_after(jiffies,E) ) @ include depends on change_compare_np @ @@ #include @ no_include depends on !include && change_compare_np @ @@ #include + #include // [ mingo@elte.hu: merge to x86.git ] Signed-off-by: Julia Lawall Signed-off-by: Ingo Molnar Signed-off-by: Thomas Gleixner --- Reading git-diff-tree failed