1455e370cSJohn Levon /* 2455e370cSJohn Levon * This file and its contents are supplied under the terms of the 3455e370cSJohn Levon * Common Development and Distribution License ("CDDL"), version 1.0. 4455e370cSJohn Levon * You may only use this file in accordance with the terms of version 5455e370cSJohn Levon * 1.0 of the CDDL. 6455e370cSJohn Levon * 7455e370cSJohn Levon * A full copy of the text of the CDDL should have accompanied this 8455e370cSJohn Levon * source. A copy of the CDDL is also available via the Internet at 9455e370cSJohn Levon * http://www.illumos.org/license/CDDL. 10455e370cSJohn Levon */ 11455e370cSJohn Levon 12455e370cSJohn Levon /* 13*c3377ee9SJohn Levon * Copyright 2019 Joyent, Inc. 14455e370cSJohn Levon */ 15455e370cSJohn Levon 16*c3377ee9SJohn Levon #ifndef _SYS_SMT_H 17*c3377ee9SJohn Levon #define _SYS_SMT_H 18455e370cSJohn Levon 19455e370cSJohn Levon #include <sys/types.h> 20455e370cSJohn Levon #include <sys/thread.h> 21455e370cSJohn Levon 22455e370cSJohn Levon #ifdef __cplusplus 23455e370cSJohn Levon extern "C" { 24455e370cSJohn Levon #endif 25455e370cSJohn Levon 26*c3377ee9SJohn Levon #define smt_init() {} 27*c3377ee9SJohn Levon #define smt_late_init() {} 28*c3377ee9SJohn Levon #define smt_disable() (ENOTSUP) 29*c3377ee9SJohn Levon #define smt_can_enable(c, f) (0) 30*c3377ee9SJohn Levon #define smt_force_enabled() {} 31455e370cSJohn Levon 32*c3377ee9SJohn Levon #define smt_should_run(t, c) (B_TRUE) 33*c3377ee9SJohn Levon #define smt_adjust_cpu_score(t, c, p) (p) 34*c3377ee9SJohn Levon #define smt_begin_unsafe(void) {} 35*c3377ee9SJohn Levon #define smt_end_unsafe(void) {} 36*c3377ee9SJohn Levon #define smt_end_intr(void) {} 37455e370cSJohn Levon 38455e370cSJohn Levon #ifdef __cplusplus 39455e370cSJohn Levon } 40455e370cSJohn Levon #endif 41455e370cSJohn Levon 42*c3377ee9SJohn Levon #endif /* _SYS_SMT_H */ 43