voltage_domain.cc (11523:81332eb10367) voltage_domain.cc (11793:ef606668d247)
1/*
2 * Copyright (c) 2012-2014 ARM Limited
3 * All rights reserved
4 *
5 * The license below extends only to copyright in the software and shall
6 * not be construed as granting a license to any other intellectual
7 * property including but not limited to intellectual property relating
8 * to a hardware implementation of the functionality of the software

--- 24 unchanged lines hidden (view full) ---

33 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
34 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
35 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
36 *
37 * Authors: Vasileios Spiliopoulos
38 * Akash Bagdia
39 */
40
1/*
2 * Copyright (c) 2012-2014 ARM Limited
3 * All rights reserved
4 *
5 * The license below extends only to copyright in the software and shall
6 * not be construed as granting a license to any other intellectual
7 * property including but not limited to intellectual property relating
8 * to a hardware implementation of the functionality of the software

--- 24 unchanged lines hidden (view full) ---

33 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
34 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
35 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
36 *
37 * Authors: Vasileios Spiliopoulos
38 * Akash Bagdia
39 */
40
41#include "sim/voltage_domain.hh"
42
41#include <algorithm>
42
43#include "base/statistics.hh"
44#include "debug/VoltageDomain.hh"
45#include "params/VoltageDomain.hh"
46#include "sim/sim_object.hh"
43#include <algorithm>
44
45#include "base/statistics.hh"
46#include "debug/VoltageDomain.hh"
47#include "params/VoltageDomain.hh"
48#include "sim/sim_object.hh"
47#include "sim/voltage_domain.hh"
48
49VoltageDomain::VoltageDomain(const Params *p)
50 : SimObject(p), voltageOpPoints(p->voltage), _perfLevel(0)
51{
52 fatal_if(voltageOpPoints.empty(), "DVFS: Empty set of voltages for "\
53 "voltage domain %s\n", name());
54
55 // Voltages must be sorted in descending order.

--- 102 unchanged lines hidden ---
49
50VoltageDomain::VoltageDomain(const Params *p)
51 : SimObject(p), voltageOpPoints(p->voltage), _perfLevel(0)
52{
53 fatal_if(voltageOpPoints.empty(), "DVFS: Empty set of voltages for "\
54 "voltage domain %s\n", name());
55
56 // Voltages must be sorted in descending order.

--- 102 unchanged lines hidden ---