Octeon 6xxx: Add Power Throttling support for CN6xxx and above
PATCH v2 1/1 Octeon 6xxx: Add Power Throttling support for CN6xxx and above
From 51898ada30d5eae7bff92dfb774df5a05ff670a4 Mon Sep 17 00:00:00 2001
From: Philby John <[email protected]>
Date: Thu, 5 Jul 2012 17:35:45 +0530
Subject: [PATCH v2] Octeon 6xxx: Add Power Throttling support for CN6xxx and above
This patch adds the sysfs primitives for power throttling.
Octeon2 supports dynamic power control which aids to cut down power consumption. The code exposes a "percentage" power throttling limiter by means of /sys interface for each available cpu. Setting this value to 0 will set power consumption to a minimum as it will only execute a couple instructions every PERIOD as set in the PowThrottle register. If set to 100% for that particular cpu, it will consume maximum power.
Functionality tested on an Octeon 63xx.
--- arch/mips/cavium-octeon/Makefile | 1 + arch/mips/cavium-octeon/octeon-pwr-throtl.c | 379 +++++++++++++++++++++++++++ 2 files changed, 380 insertions(+), 0 deletions(-) create mode 100644 arch/mips/cavium-octeon/octeon-pwr-throtl.c
arch/mips/cavium-octeon/Makefile +1 -0
@@ -15,3 +15,4 @@ obj-y += octeon-memcpy.o obj-y += executive/ obj-$(CONFIG_SMP) += smp.o +obj-$(CONFIG_SYSFS) += octeon-pwr-throtl.o
arch/mips/cavium-octeon/octeon-pwr-throtl.c new file +379 -0
379 lines not on this page · raw message
Signature · 1 line
1.6.3.3.340.g77d18