ARMv7 VExpress fixes for v4.8
Few fixes to remove build warnings with W=1 -----BEGIN PGP SIGNATURE----- Version: GnuPG v1 iQIcBAABCAAGBQJXYqwfAAoJEABBurwxfuKYN44QAI/lNznZw0PZhKCzpXJyyr37 le42sQtCxEv9qjklzXS0zi9PXBGIZJ/yPH8HkcrKYUWM0UJjQVbpyD4zDCDBAu4A 6R1aO/BDedTeDg78NOJlJQrH8D4lSeYYVPZRkFrEqNRtqTaRvafRFhgiFSZfHTSI vi8znwgYd1a2pw5pb5AaneV2dHGsILDEg0E7z/jOYj0M0t4HTGUolZvJgwJjddJa gEF0RmO8jvKVXlGLhq6B5BeHWG88HorTpdJajr/9A8+SuCPLllOHeXdy/pPpgskr ojeTTCWcUP7vsVdnpLuK70R+i+d1UPQ+om1CSv6y6pJ30o7qZVd8lxS71SLw8X/r QtkUtwK85AGEffG3XpoAvh75laQwBVumFUvRn0NxxtM/xw/z/GU2vPB8KLvor4Pu 9CkKMs587CBQHDEoPKCQfkknICCh8fQMUkUDfYee6DDaGEzFVhKaLI2P2cM7tOFk ZcnBj/0RKBKsIvBNtDvATrsp044bNbsB/3/sDCvm8m9G5mAvAF8Z+0/K2yg1dYWg qu4UfBj3X3S1ukwt8Mf8rh21uD8/H9ajtffWgY+dRvLajqVpxjJO+prg7AioAeCQ ng+5aIUbqWKOkYwY5WArpiQXFLYwdNdjSWEEiL7CUMLFKUvwA5HuhTntPJl2kHUb 94bRbhQyf9HTvTbc0krR =Izhy -----END PGP SIGNATURE----- Merge tag 'vexpress-fixes-4.8' of git://git.kernel.org/pub/scm/linux/kernel/git/sudeep.holla/linux into next/cleanup ARMv7 VExpress fixes for v4.8 Few fixes to remove build warnings with W=1 * tag 'vexpress-fixes-4.8' of git://git.kernel.org/pub/scm/linux/kernel/git/sudeep.holla/linux: power: vexpress: make dev_attr_active static ARM: vexpress/spc: fix missing include of spc.h ARM: versatile: fix missing <plat/platsmp.h> include ARM: vexpress/hotplug: fix missing core.h include ARM: vexpress/spc: remove unused variable perf_stat_reg Signed-off-by: Olof Johansson <olof@lixom.net>
This commit is contained in:
commit
5d82ae6ed1
|
@ -15,6 +15,8 @@
|
|||
#include <asm/smp_plat.h>
|
||||
#include <asm/cp15.h>
|
||||
|
||||
#include "core.h"
|
||||
|
||||
static inline void cpu_enter_lowpower(void)
|
||||
{
|
||||
unsigned int v;
|
||||
|
|
|
@ -31,6 +31,8 @@
|
|||
|
||||
#include <asm/cacheflush.h>
|
||||
|
||||
#include "spc.h"
|
||||
|
||||
#define SPCLOG "vexpress-spc: "
|
||||
|
||||
#define PERF_LVL_A15 0x00
|
||||
|
@ -319,17 +321,15 @@ static int ve_spc_waitforcompletion(int req_type)
|
|||
|
||||
static int ve_spc_set_performance(int cluster, u32 freq)
|
||||
{
|
||||
u32 perf_cfg_reg, perf_stat_reg;
|
||||
u32 perf_cfg_reg;
|
||||
int ret, perf, req_type;
|
||||
|
||||
if (cluster_is_a15(cluster)) {
|
||||
req_type = CA15_DVFS;
|
||||
perf_cfg_reg = PERF_LVL_A15;
|
||||
perf_stat_reg = PERF_REQ_A15;
|
||||
} else {
|
||||
req_type = CA7_DVFS;
|
||||
perf_cfg_reg = PERF_LVL_A7;
|
||||
perf_stat_reg = PERF_REQ_A7;
|
||||
}
|
||||
|
||||
perf = ve_spc_find_performance_index(cluster, freq);
|
||||
|
|
|
@ -18,6 +18,8 @@
|
|||
#include <asm/cacheflush.h>
|
||||
#include <asm/smp_plat.h>
|
||||
|
||||
#include <plat/platsmp.h>
|
||||
|
||||
/*
|
||||
* Write pen_release in a way that is guaranteed to be visible to all
|
||||
* observers, irrespective of whether they're taking part in coherency
|
||||
|
|
|
@ -74,8 +74,8 @@ static ssize_t vexpress_reset_active_store(struct device *dev,
|
|||
return err ? err : count;
|
||||
}
|
||||
|
||||
DEVICE_ATTR(active, S_IRUGO | S_IWUSR, vexpress_reset_active_show,
|
||||
vexpress_reset_active_store);
|
||||
static DEVICE_ATTR(active, S_IRUGO | S_IWUSR, vexpress_reset_active_show,
|
||||
vexpress_reset_active_store);
|
||||
|
||||
|
||||
enum vexpress_reset_func { FUNC_RESET, FUNC_SHUTDOWN, FUNC_REBOOT };
|
||||
|
|
Loading…
Reference in New Issue