mirror of
https://git.FreeBSD.org/src.git
synced 2024-12-17 10:26:15 +00:00
Eliminate unneeded diagnostic code.
Eliminate an unused #include. (Kernel stack allocation and deallocation long ago migrated to the machine-independent code.)
This commit is contained in:
parent
7bdc89d779
commit
50b334506f
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=148976
@ -104,7 +104,6 @@ __FBSDID("$FreeBSD$");
|
||||
*/
|
||||
|
||||
#include "opt_msgbuf.h"
|
||||
#include "opt_kstack_pages.h"
|
||||
|
||||
#include <sys/param.h>
|
||||
#include <sys/systm.h>
|
||||
@ -2557,12 +2556,6 @@ pmap_is_modified(vm_page_t m)
|
||||
*/
|
||||
if (!pmap_track_modified(pv->pv_va))
|
||||
continue;
|
||||
#if defined(PMAP_DIAGNOSTIC)
|
||||
if (!pv->pv_pmap) {
|
||||
printf("Null pmap (tb) at va: 0x%lx\n", pv->pv_va);
|
||||
continue;
|
||||
}
|
||||
#endif
|
||||
PMAP_LOCK(pv->pv_pmap);
|
||||
pte = pmap_pte(pv->pv_pmap, pv->pv_va);
|
||||
rv = (*pte & PG_M) != 0;
|
||||
|
@ -104,7 +104,6 @@ __FBSDID("$FreeBSD$");
|
||||
#include "opt_cpu.h"
|
||||
#include "opt_pmap.h"
|
||||
#include "opt_msgbuf.h"
|
||||
#include "opt_kstack_pages.h"
|
||||
|
||||
#include <sys/param.h>
|
||||
#include <sys/systm.h>
|
||||
@ -2633,12 +2632,6 @@ pmap_is_modified(vm_page_t m)
|
||||
*/
|
||||
if (!pmap_track_modified(pv->pv_va))
|
||||
continue;
|
||||
#if defined(PMAP_DIAGNOSTIC)
|
||||
if (!pv->pv_pmap) {
|
||||
printf("Null pmap (tb) at va: 0x%x\n", pv->pv_va);
|
||||
continue;
|
||||
}
|
||||
#endif
|
||||
PMAP_LOCK(pv->pv_pmap);
|
||||
pte = pmap_pte_quick(pv->pv_pmap, pv->pv_va);
|
||||
rv = (*pte & PG_M) != 0;
|
||||
|
Loading…
Reference in New Issue
Block a user