Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 207339
b: refs/heads/master
c: 1a15a25
h: refs/heads/master
i:
  207337: 3305ab4
  207335: baab3ce
v: v3
  • Loading branch information
Patrick Pannuto authored and Linus Torvalds committed Aug 10, 2010
1 parent 99f5ea4 commit 2ce3ec6
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 8bbea968f9022c3f66a36902509574597611be99
refs/heads/master: 1a15a250862fda3fbdf8454cc7131e24de904e7c
8 changes: 8 additions & 0 deletions trunk/scripts/checkpatch.pl
Original file line number Diff line number Diff line change
Expand Up @@ -2584,6 +2584,14 @@ sub process {
}
}

# prefer usleep_range over udelay
if ($line =~ /\budelay\s*\(\s*(\w+)\s*\)/) {
# ignore udelay's < 10, however
if (! (($1 =~ /(\d+)/) && ($1 < 10)) ) {
CHK("usleep_range is preferred over udelay; see Documentation/timers/timers-howto.txt\n" . $line);
}
}

# warn about #ifdefs in C files
# if ($line =~ /^.\s*\#\s*if(|n)def/ && ($realfile =~ /\.c$/)) {
# print "#ifdef in C files should be avoided\n";
Expand Down

0 comments on commit 2ce3ec6

Please sign in to comment.