Georgios Katsikas | 8360098 | 2017-05-28 20:41:45 +0200 | [diff] [blame] | 1 | /* |
| 2 | * Copyright 2017-present Open Networking Foundation |
| 3 | * |
| 4 | * Licensed under the Apache License, Version 2.0 (the "License"); |
| 5 | * you may not use this file except in compliance with the License. |
| 6 | * You may obtain a copy of the License at |
| 7 | * |
| 8 | * http://www.apache.org/licenses/LICENSE-2.0 |
| 9 | * |
| 10 | * Unless required by applicable law or agreed to in writing, software |
| 11 | * distributed under the License is distributed on an "AS IS" BASIS, |
| 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| 13 | * See the License for the specific language governing permissions and |
| 14 | * limitations under the License. |
| 15 | */ |
| 16 | |
| 17 | package org.onosproject.drivers.server.devices; |
| 18 | |
| 19 | /** |
| 20 | * Represents an abstraction of a CPU core in ONOS. |
| 21 | */ |
| 22 | public interface CpuDevice { |
| 23 | |
| 24 | /** |
| 25 | * Returns the ID of this CPU. |
| 26 | * Typically this is the order number (0...N-1) |
| 27 | * of this CPU core in the socket. |
| 28 | * |
| 29 | * @return CPU core ID |
| 30 | */ |
| 31 | int id(); |
| 32 | |
| 33 | /** |
| 34 | * Returns the vendor of this CPU core. |
| 35 | * |
| 36 | * @return CPU core vendor |
| 37 | */ |
| 38 | CpuVendor vendor(); |
| 39 | |
| 40 | /** |
| 41 | * Returns the frequency of this CPU core in MHz. |
| 42 | * |
| 43 | * @return CPU core frequency in MHz |
| 44 | */ |
| 45 | long frequency(); |
| 46 | |
| 47 | } |