Lines Matching refs:kc
65 kstat_ctl_t *kc; in pt_turbo_init() local
72 if ((kc = kstat_open()) == NULL) { in pt_turbo_init()
77 ksp = kstat_lookup(kc, "turbo", 0, NULL); in pt_turbo_init()
80 (void) kstat_close(kc); in pt_turbo_init()
84 (void) kstat_read(kc, ksp, NULL); in pt_turbo_init()
90 (void) kstat_close(kc); in pt_turbo_init()
103 (void) kstat_close(kc); in pt_turbo_init()
114 kstat_ctl_t *kc; in pt_turbo_snapshot() local
120 if ((kc = kstat_open()) == NULL) in pt_turbo_snapshot()
125 ksp = kstat_lookup(kc, "turbo", g_cpu_table[cpu], NULL); in pt_turbo_snapshot()
129 (void) kstat_close(kc); in pt_turbo_snapshot()
133 if (kstat_read(kc, ksp, NULL) == -1) { in pt_turbo_snapshot()
136 (void) kstat_close(kc); in pt_turbo_snapshot()
144 (void) kstat_close(kc); in pt_turbo_snapshot()
157 (void) kstat_close(kc); in pt_turbo_snapshot()
167 if (kstat_close(kc) != 0) in pt_turbo_snapshot()