diff options
Diffstat (limited to 'usr/src/uts/i86pc/os/cmi.c')
-rw-r--r-- | usr/src/uts/i86pc/os/cmi.c | 20 |
1 files changed, 13 insertions, 7 deletions
diff --git a/usr/src/uts/i86pc/os/cmi.c b/usr/src/uts/i86pc/os/cmi.c index 4d27eb61d3..b3d52c1726 100644 --- a/usr/src/uts/i86pc/os/cmi.c +++ b/usr/src/uts/i86pc/os/cmi.c @@ -22,6 +22,7 @@ /* * Copyright 2010 Sun Microsystems, Inc. All rights reserved. * Use is subject to license terms. + * Copyright (c) 2018, Joyent, Inc. */ /* @@ -69,13 +70,6 @@ int cmi_force_generic = 0; */ int cmi_panic_on_uncorrectable_error = 1; -#ifndef __xpv -/* - * Set to indicate whether we are able to enable cmci interrupt. - */ -int cmi_enable_cmci = 0; -#endif - /* * Subdirectory (relative to the module search path) in which we will * look for cpu modules. @@ -967,3 +961,15 @@ cmi_panic_callback(void) cmi_hdl_rele(hdl); } + + +const char * +cmi_hdl_chipident(cmi_hdl_t hdl) +{ + cmi_t *cmi = cmi_hdl_getcmi(hdl); + + if (!CMI_OP_PRESENT(cmi, cmi_ident)) + return (NULL); + + return (CMI_OPS(cmi)->cmi_ident(hdl)); +} |