}
-#ifdef __linux__
-
int
virResctrlGetInfo(virResctrlInfoPtr resctrl)
{
return ret;
}
-#else /* ! __linux__ */
-
-int
-virResctrlGetInfo(virResctrlInfoPtr resctrl ATTRIBUTE_UNUSED)
-{
- virReportSystemError(ENOSYS, "%s",
- _("Cache tune not supported on this platform"));
- return -1;
-}
-
-#endif /* ! __linux__ */
-
int
virResctrlInfoGetCache(virResctrlInfoPtr resctrl,
}
-#ifdef __linux__
-
static void
virResctrlAllocSubtractPerType(virResctrlAllocPerTypePtr dst,
virResctrlAllocPerTypePtr src)
goto cleanup;
}
-#else /* ! __linux__ */
-
-virResctrlAllocPtr
-virResctrlAllocGetUnused(virResctrlInfoPtr resctrl ATTRIBUTE_UNUSED)
-{
- virReportSystemError(ENOSYS, "%s",
- _("Cache tune not supported on this platform"));
- return NULL;
-}
-
-#endif /* ! __linux__ */
-
/*
* Given the information about requested allocation type `a_type`, the host