1
0
mirror of https://git.FreeBSD.org/src.git synced 2024-12-23 11:18:54 +00:00

Remove do-nothing code that was required to dirty the old buffer on Alpha.

Coverity ID:	838
Approved by:	jhb, alc
This commit is contained in:
Dag-Erling Smørgrav 2009-05-15 21:34:58 +00:00
parent f633d09533
commit 433e2f4763
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=192160

View File

@ -1373,8 +1373,7 @@ int
sysctl_wire_old_buffer(struct sysctl_req *req, size_t len)
{
int ret;
size_t i, wiredlen;
char *cp, dummy;
size_t wiredlen;
wiredlen = (len > 0 && len < req->oldlen) ? len : req->oldlen;
ret = 0;
@ -1387,16 +1386,6 @@ sysctl_wire_old_buffer(struct sysctl_req *req, size_t len)
return (ret);
wiredlen = 0;
}
/*
* Touch all the wired pages to avoid PTE modified
* bit emulation traps on Alpha while holding locks
* in the sysctl handler.
*/
for (i = (wiredlen + PAGE_SIZE - 1) / PAGE_SIZE,
cp = req->oldptr; i > 0; i--, cp += PAGE_SIZE) {
copyin(cp, &dummy, 1);
copyout(&dummy, cp, 1);
}
}
req->lock = REQ_WIRED;
req->validlen = wiredlen;