schemas: legacy: extract HostCpuUtilization

This allows to remove some properties from 'Aggregate' schema which are
no longer needed, since there is now a more specific schema to use.

Tested: Schema Validator Pass

Change-Id: I359436ad41daef1d7a46f4fde8fab591da52afa8
Signed-off-by: Alexander Hansen <alexander.hansen@9elements.com>
diff --git a/schemas/global.json b/schemas/global.json
index 10a25ed..ee1c003 100644
--- a/schemas/global.json
+++ b/schemas/global.json
@@ -82,6 +82,9 @@
                             "$ref": "legacy.json#/$defs/MultiNodePresence"
                         },
                         {
+                            "$ref": "legacy.json#/$defs/HostCpuUtilization"
+                        },
+                        {
                             "$ref": "virtual_sensor.json#/$defs/VirtualSensor"
                         },
                         {
diff --git a/schemas/legacy.json b/schemas/legacy.json
index 3ebbae9..7a544e8 100644
--- a/schemas/legacy.json
+++ b/schemas/legacy.json
@@ -427,6 +427,23 @@
             "required": ["Name", "Type", "Bus", "Address"],
             "type": "object"
         },
+        "HostCpuUtilization": {
+            "additionalProperties": false,
+            "properties": {
+                "Name": {
+                    "$ref": "#/$defs/Types/Name"
+                },
+                "Polling": {
+                    "$ref": "#/$defs/Types/Polling"
+                },
+                "Type": {
+                    "type": "string",
+                    "const": "HostCpuUtilization"
+                }
+            },
+            "required": ["Name", "Type", "Polling"],
+            "type": "object"
+        },
         "Aggregate": {
             "description": "Don't add additional properties to this schema. Consult README.schema for instructions on adding new Exposes element sub-schema.",
             "additionalProperties": false,
@@ -907,7 +924,6 @@
                     "UCD90160",
                     "UCD90320",
                     "EmmcDevice",
-                    "HostCpuUtilization",
                     "MB Upstream Port",
                     "DownstreamPort",
                     "PSUPresence",