Deleted Added
sdiff udiff text old ( 11523:81332eb10367 ) new ( 11793:ef606668d247 )
full compact
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
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"
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 ---