diff options
author | Rafael Vanoni <rafael.vanoni@sun.com> | 2009-06-17 12:21:28 -0700 |
---|---|---|
committer | Rafael Vanoni <rafael.vanoni@sun.com> | 2009-06-17 12:21:28 -0700 |
commit | c0a3d87bd66ca5a9f1c81e383ee86d31aebd8ab7 (patch) | |
tree | 29c7de2cb4063e32d428d74dfb10d935f3aad2e3 /usr/src | |
parent | 76c04273c82e93b83f826e73f096a3ece549a8f9 (diff) | |
download | illumos-joyent-c0a3d87bd66ca5a9f1c81e383ee86d31aebd8ab7.tar.gz |
6847706 ::pg uses cmt class name before reading class, cmt_hint obsolete
Diffstat (limited to 'usr/src')
-rw-r--r-- | usr/src/cmd/mdb/common/modules/genunix/pg.c | 12 | ||||
-rw-r--r-- | usr/src/uts/common/sys/cmt.h | 1 |
2 files changed, 6 insertions, 7 deletions
diff --git a/usr/src/cmd/mdb/common/modules/genunix/pg.c b/usr/src/cmd/mdb/common/modules/genunix/pg.c index 60b4fba431..32f8988212 100644 --- a/usr/src/cmd/mdb/common/modules/genunix/pg.c +++ b/usr/src/cmd/mdb/common/modules/genunix/pg.c @@ -115,6 +115,12 @@ pg(uintptr_t addr, uint_t flags, int argc, const mdb_arg_t *argv) return (DCMD_OK); } + if (mdb_vread(&pg_class, sizeof (struct pg_class), + (uintptr_t)pg.pg_class) == -1) { + mdb_warn("unable to read 'pg_class' at %p", pg.pg_class); + return (DCMD_ERR); + } + if (strcmp(pg_class.pgc_name, "cmt") == 0) { if (mdb_vread(&pg_cmt, sizeof (pg_cmt_t), addr) == -1) { mdb_warn("unable to read 'cmt pg' at %p", addr); @@ -123,12 +129,6 @@ pg(uintptr_t addr, uint_t flags, int argc, const mdb_arg_t *argv) is_cmt = 1; } - if (mdb_vread(&pg_class, sizeof (struct pg_class), - (uintptr_t)pg.pg_class) == -1) { - mdb_warn("unable to read 'pg_class' at %p", pg.pg_class); - return (DCMD_ERR); - } - if (pg.pg_relation == PGR_PHYSICAL) { if (mdb_vread(&pghw, sizeof (struct pghw), addr) == -1) { mdb_warn("unable to read 'pghw' at %p", addr); diff --git a/usr/src/uts/common/sys/cmt.h b/usr/src/uts/common/sys/cmt.h index 3ea49ded99..4e7ed28656 100644 --- a/usr/src/uts/common/sys/cmt.h +++ b/usr/src/uts/common/sys/cmt.h @@ -61,7 +61,6 @@ typedef struct pg_cmt { pg_cmt_policy_t cmt_policy; /* Dispatcher policies to use */ uint32_t cmt_utilization; /* Group's utilization */ int cmt_nchildren; /* # of children CMT PGs */ - int cmt_hint; /* hint for balancing */ struct group cmt_cpus_actv; struct bitset cmt_cpus_actv_set; /* bitset of active CPUs */ } pg_cmt_t; |