|
@@ -58,6 +58,8 @@ static ssize_t kpagecount_read(struct file *file, char __user *buf,
|
|
|
pfn++;
|
|
|
out++;
|
|
|
count -= KPMSIZE;
|
|
|
+
|
|
|
+ cond_resched();
|
|
|
}
|
|
|
|
|
|
*ppos += (char __user *)out - buf;
|
|
@@ -219,6 +221,8 @@ static ssize_t kpageflags_read(struct file *file, char __user *buf,
|
|
|
pfn++;
|
|
|
out++;
|
|
|
count -= KPMSIZE;
|
|
|
+
|
|
|
+ cond_resched();
|
|
|
}
|
|
|
|
|
|
*ppos += (char __user *)out - buf;
|
|
@@ -267,6 +271,8 @@ static ssize_t kpagecgroup_read(struct file *file, char __user *buf,
|
|
|
pfn++;
|
|
|
out++;
|
|
|
count -= KPMSIZE;
|
|
|
+
|
|
|
+ cond_resched();
|
|
|
}
|
|
|
|
|
|
*ppos += (char __user *)out - buf;
|