[prev in list] [next in list] [prev in thread] [next in thread] 

List:       linux-mm-commits
Subject:    + nvidia-agp-use-time_before_eq.patch added to -mm tree
From:       akpm () osdl ! org
Date:       2005-11-30 23:26:07
Message-ID: 200511302324.jAUNOmfR015610 () shell0 ! pdx ! osdl ! net
[Download RAW message or body]


The patch titled

     nvidia-agp: use time_before_eq()

has been added to the -mm tree.  Its filename is

     nvidia-agp-use-time_before_eq.patch


From: Marcelo Feitoza Parisi <marcelo@feitoza.com.br>

It deals with wrapping correctly and is nicer to read.

Signed-off-by: Marcelo Feitoza Parisi <marcelo@feitoza.com.br>
Signed-off-by: Alexey Dobriyan <adobriyan@gmail.com>
Cc: Dave Jones <davej@codemonkey.org.uk>
Signed-off-by: Andrew Morton <akpm@osdl.org>
---

 drivers/char/agp/nvidia-agp.c |    3 ++-
 1 files changed, 2 insertions(+), 1 deletion(-)

diff -puN drivers/char/agp/nvidia-agp.c~nvidia-agp-use-time_before_eq drivers/char/agp/nvidia-agp.c
--- 25/drivers/char/agp/nvidia-agp.c~nvidia-agp-use-time_before_eq	Wed Nov 30 15:26:01 2005
+++ 25-akpm/drivers/char/agp/nvidia-agp.c	Wed Nov 30 15:26:01 2005
@@ -11,6 +11,7 @@
 #include <linux/gfp.h>
 #include <linux/page-flags.h>
 #include <linux/mm.h>
+#include <linux/jiffies.h>
 #include "agp.h"
 
 /* NVIDIA registers */
@@ -256,7 +257,7 @@ static void nvidia_tlbflush(struct agp_m
 		do {
 			pci_read_config_dword(nvidia_private.dev_1,
 					NVIDIA_1_WBC, &wbc_reg);
-			if ((signed)(end - jiffies) <= 0) {
+			if (time_before_eq(end, jiffies)) {
 				printk(KERN_ERR PFX
 				    "TLB flush took more than 3 seconds.\n");
 			}
_

Patches currently in -mm which might be from marcelo@feitoza.com.br are

drivers-block-use-time_after-and-friends.patch
nvidia-agp-use-time_before_eq.patch
ide-tape-use-time_after-time_after_eq.patch
drivers-net-use-time_after-and-friends.patch

-
To unsubscribe from this list: send the line "unsubscribe mm-commits" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic