aboutsummaryrefslogtreecommitdiff
path: root/hw/occ.c
diff options
context:
space:
mode:
Diffstat (limited to 'hw/occ.c')
-rw-r--r--hw/occ.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/hw/occ.c b/hw/occ.c
index a1e4982..b09b76d 100644
--- a/hw/occ.c
+++ b/hw/occ.c
@@ -1512,7 +1512,7 @@ static struct opal_occ_cmd_data pcap_data = {
.cmd = OCC_CMD_SET_POWER_CAP,
};
-int occ_set_powercap(u32 handle, int token, u32 pcap)
+int __attribute__((__const__)) occ_set_powercap(u32 handle, int token, u32 pcap)
{
struct occ_dynamic_data *ddata;
struct proc_chip *chip;