libct/intelrdt: delete IsMBAScEnabled()
This function is unused, and removing it simplifies the changes which
follow this commit.
@@ -182,8 +182,6 @@ var (
catEnabled bool
// The flag to indicate if Intel RDT/MBA is enabled
mbaEnabled bool
- // The flag to indicate if Intel RDT/MBA Software Controller is enabled
- mbaScEnabled bool
// For Intel RDT initialization
initOnce sync.Once
@@ -216,12 +214,7 @@ func featuresInit() {
catEnabled = true
}
}
- if mbaScEnabled {
- // We confirm MBA Software Controller is enabled in step 2,
- // MBA should be enabled because MBA Software Controller
- // depends on MBA
- mbaEnabled = true
- } else if flagsSet.MBA {
+ if flagsSet.MBA {
if _, err := os.Stat(filepath.Join(root, "info", "MB")); err == nil {
mbaEnabled = true
}
@@ -260,11 +253,6 @@ func findIntelRdtMountpointDir() (string, error) {
return "", errNotFound
}
- // Check if MBA Software Controller is enabled through mount option "-o mba_MBps"
- if strings.Contains(","+mi[0].VFSOptions+",", ",mba_MBps,") {
- mbaScEnabled = true
- }
-
return mi[0].Mountpoint, nil
}
@@ -493,12 +481,6 @@ func IsMBAEnabled() bool {
return mbaEnabled
}
-// Check if Intel RDT/MBA Software Controller is enabled
-func IsMBAScEnabled() bool {
- featuresInit()
- return mbaScEnabled
-}
-
// Get the path of the clos group in "resource control" filesystem that the container belongs to
func (m *Manager) getIntelRdtPath() (string, error) {
rootPath, err := Root()
