Mercurial > illumos > illumos-gate
changeset 11944:e98306283739
6933154 need to add code in fdd-msg to workaround CR 6933053
author | Luping Quan <Luping.Quan@Sun.COM> |
---|---|
date | Wed, 17 Mar 2010 15:02:18 -0400 |
parents | 034460822be4 |
children | 0f9bdddcdf1d |
files | usr/src/cmd/fm/modules/common/fdd-msg/fdd_msg.c |
diffstat | 1 files changed, 10 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/usr/src/cmd/fm/modules/common/fdd-msg/fdd_msg.c Wed Mar 17 07:16:26 2010 -0700 +++ b/usr/src/cmd/fm/modules/common/fdd-msg/fdd_msg.c Wed Mar 17 15:02:18 2010 -0400 @@ -41,6 +41,7 @@ #include <errno.h> #include <stdio.h> #include <strings.h> +#include <sys/systeminfo.h> #include <libipmi.h> #include <fm/fmd_api.h> @@ -100,6 +101,8 @@ NULL, /* fmdo_close */ NULL, /* fmdo_stats */ NULL, /* fmdo_gc */ + NULL, /* fmdo_send */ + NULL, /* fmdo_topo */ }; static const fmd_prop_t fmd_props[] = { @@ -117,6 +120,12 @@ ipmi_handle_t *ipmi_hdl; int error; char *msg; + char isa[8]; + + /* For now the module only sends message to ILOM on i386 platforms */ + if ((sysinfo(SI_ARCHITECTURE, isa, sizeof (isa)) == -1) || + (strncmp(isa, "i386", 4) != 0)) + return; if (fmd_hdl_register(hdl, FMD_API_VERSION, &fmd_info) != 0) return; @@ -152,7 +161,7 @@ /* * Setup the timer. */ - (void) fmd_timer_install(hdl, NULL, NULL, 0); + (void) fmd_timer_install(hdl, NULL, NULL, 2000000000ULL); } void