Remove the MULTIDELAY option from arm. It's now enabled when PLATFORM is

enabled.
This commit is contained in:
andrew 2017-07-07 13:55:11 +00:00
parent 78f1912247
commit 0587326ef3
25 changed files with 6 additions and 47 deletions

View File

@ -72,10 +72,6 @@ __FBSDID("$FreeBSD$");
#include <dev/acpica/acpivar.h>
#endif
#if defined(__arm__) && !defined(MULTIDELAY)
#error The generic timer requires MULTIDELAY on 32bit arm
#endif
#define GT_CTRL_ENABLE (1 << 0)
#define GT_CTRL_INT_MASK (1 << 1)
#define GT_CTRL_INT_STAT (1 << 2)

View File

@ -146,7 +146,7 @@ static struct pv_addr kernelstack;
#endif /* __ARM_ARCH >= 6 */
#endif /* FDT */
#ifdef MULTIDELAY
#ifdef PLATFORM
static delay_func *delay_impl;
static void *delay_arg;
#endif
@ -331,7 +331,7 @@ cpu_initclocks(void)
}
#endif
#ifdef MULTIDELAY
#ifdef PLATFORM
void
arm_set_delay(delay_func *impl, void *arg)
{

View File

@ -59,9 +59,7 @@ __FBSDID("$FreeBSD$");
#include <machine/cpu.h>
#include <machine/intr.h>
#ifdef MULTIDELAY
#include <machine/machdep.h> /* For arm_set_delay */
#endif
#include <dev/ofw/openfirm.h>
#include <dev/ofw/ofw_bus.h>
@ -71,10 +69,6 @@ __FBSDID("$FreeBSD$");
#include <arm/arm/mpcore_timervar.h>
#if defined(PLATFORM) && !defined(MULTIDELAY)
#error The MPCore Timer driver requires MULTIDELAY when building with PLATFORM
#endif
/* Private (per-CPU) timer register map */
#define PRV_TIMER_LOAD 0x0000
#define PRV_TIMER_COUNT 0x0004
@ -442,7 +436,7 @@ arm_tmr_attach(device_t dev)
return (ENXIO);
}
#ifdef MULTIDELAY
#ifdef PLATFORM
/*
* We can register as the DELAY() implementation only if we successfully
* set up the global timer.
@ -533,7 +527,7 @@ arm_tmr_delay(int usec, void *arg)
}
}
#ifndef MULTIDELAY
#ifndef PLATFORM
/**
* DELAY - Delay for at least usec microseconds.
* @usec: number of microseconds to delay by

View File

@ -75,9 +75,7 @@ SYSCTL_STRING(_hw, OID_AUTO, platform, CTLFLAG_RDTUN | CTLFLAG_NOFETCH, plat_nam
*/
SET_DECLARE(platform_set, platform_def_t);
#ifdef MULTIDELAY
static delay_func platform_delay;
#endif
void
platform_probe_and_attach(void)
@ -152,10 +150,8 @@ platform_probe_and_attach(void)
strlcpy(plat_name, plat_def_impl->name, sizeof(plat_name));
#ifdef MULTIDELAY
/* Set a default delay function */
arm_set_delay(platform_delay, NULL);
#endif
PLATFORM_ATTACH(plat_obj);
}
@ -202,7 +198,6 @@ cpu_reset(void)
}
}
#ifdef MULTIDELAY
static void
platform_delay(int usec, void *arg __unused)
{
@ -216,7 +211,6 @@ platform_delay(int usec, void *arg __unused)
*/
cpufunc_nullop();
}
#endif
#if defined(SMP)
void

View File

@ -30,7 +30,6 @@ options SOC_ALLWINNER_A13
options SCHED_4BSD # 4BSD scheduler
options PLATFORM
options MULTIDELAY
# NFS root from boopt/dhcp
#options BOOTP

View File

@ -28,7 +28,6 @@ makeoptions WERROR="-Werror"
options SCHED_4BSD # 4BSD scheduler
options SMP # Enable multiple cores
options PLATFORM
options MULTIDELAY
# Interrupt controller
device gic

View File

@ -29,7 +29,6 @@ include "../ti/am335x/std.am335x"
makeoptions MODULES_EXTRA="dtb/am335x am335x_dmtpps"
options INTRNG
options MULTIDELAY
options SCHED_4BSD # 4BSD scheduler
options PLATFORM

View File

@ -31,7 +31,6 @@ options SCHED_4BSD # 4BSD scheduler
#options MD_ROOT # MD is a potential root device
#options NFSD # Network Filesystem Server
options PLATFORM
options MULTIDELAY
options INCLUDE_CONFIG_FILE # Include this file in kernel
# NFS root from boopt/dhcp

View File

@ -23,7 +23,6 @@ makeoptions WERROR="-Werror"
include "std.armv6"
options SCHED_ULE # ULE scheduler
options PLATFORM # Platform based SoC
options MULTIDELAY
options PREEMPTION # Enable kernel thread preemption
options INET # InterNETworking
options INET6 # IPv6 communications protocols

View File

@ -62,7 +62,6 @@ options SOC_OMAP4
options SCHED_ULE # ULE scheduler
options SMP # Enable multiple cores
options PLATFORM
options MULTIDELAY
options LINUX_BOOT_ABI
# EXT_RESOURCES pseudo devices

View File

@ -28,7 +28,6 @@ options SOC_IMX53
options SCHED_4BSD # 4BSD scheduler
#options NFSD # Network Filesystem Server
options PLATFORM
options MULTIDELAY
options INCLUDE_CONFIG_FILE # Include this file in kernel
# kernel/memory size reduction

View File

@ -31,7 +31,6 @@ options SCHED_ULE # ULE scheduler
options INCLUDE_CONFIG_FILE # Include this file in kernel
options PLATFORM
options SMP # Enable multiple cores
options MULTIDELAY
# NFS root from boopt/dhcp
#options BOOTP

View File

@ -34,7 +34,6 @@ makeoptions MODULES_EXTRA=dtb/omap4
options SCHED_ULE # ULE scheduler
options PLATFORM
options MULTIDELAY
options SMP # Enable multiple cores
# NFS root from boopt/dhcp

View File

@ -28,7 +28,6 @@ options SOC_ROCKCHIP_RK3188
options SCHED_ULE # ULE scheduler
options SMP # Enable multiple cores
options PLATFORM
options MULTIDELAY
# Root mount from MMC/SD card
options ROOTDEVNAME=\"ufs:/dev/mmcsd0\"

View File

@ -28,7 +28,6 @@ options INTRNG
options SCHED_4BSD # 4BSD scheduler
options PLATFORM
options MULTIDELAY
# NFS root from boopt/dhcp
#options BOOTP

View File

@ -31,7 +31,6 @@ options INTRNG
options SCHED_ULE # ULE scheduler
options SMP # Enable multiple cores
options PLATFORM
options MULTIDELAY
# NFS root from boopt/dhcp
#options BOOTP

View File

@ -29,7 +29,6 @@ makeoptions WERROR="-Werror"
options SCHED_ULE # ULE scheduler
options PLATFORM # Platform based SoC
options SMP # Enable multiple cores
options MULTIDELAY
options SOC_ALTERA_ARRIA10
options SOC_ALTERA_CYCLONE5

View File

@ -25,7 +25,6 @@ ident TEGRA124
options SCHED_ULE # ULE scheduler
options PLATFORM # Platform based SoC
options MULTIDELAY
options SMP # Enable multiple cores
options LINUX_BOOT_ABI

View File

@ -70,7 +70,6 @@ device random # Entropy device
options INTRNG
options PLATFORM
options MULTIDELAY
# Flattened Device Tree
options FDT # Configure using FDT/DTB data

View File

@ -26,7 +26,6 @@ include "../qemu/std.virt"
options SCHED_ULE # ULE scheduler
options PLATFORM
options SMP # Enable multiple cores
options MULTIDELAY
# Interrupt controller
device gic

View File

@ -26,7 +26,6 @@ makeoptions WERROR="-Werror"
options SCHED_4BSD # 4BSD scheduler
options PLATFORM # Platform based SoC
options MULTIDELAY
#options NANDFS # NAND Filesystem
#options SMP # Enable multiple cores

View File

@ -28,7 +28,6 @@ makeoptions MODULES_EXTRA="dtb/zynq"
options SCHED_ULE # ULE scheduler
options PLATFORM # Platform based SoC
options MULTIDELAY
#options NFSSD # Network Filesystem Server
options SMP # Enable multiple cores

View File

@ -48,7 +48,7 @@ void board_set_revision(uint32_t);
int arm_predict_branch(void *, u_int, register_t, register_t *,
u_int (*)(void*, int), u_int (*)(void*, vm_offset_t, u_int*));
#ifdef MULTIDELAY
#ifdef PLATFORM
typedef void delay_func(int, void *);
void arm_set_delay(delay_func *, void *);
#endif

View File

@ -90,15 +90,9 @@ typedef struct fdt_platform_class fdt_platform_def_t;
extern platform_method_t fdt_platform_methods[];
#ifdef MULTIDELAY
#define FDT_PLATFORM_CTASSERT(delay) CTASSERT(delay > 0)
#else
#define FDT_PLATFORM_CTASSERT(delay)
#endif
#define FDT_PLATFORM_DEF2(NAME, VAR_NAME, NAME_STR, size, compatible, \
delay) \
FDT_PLATFORM_CTASSERT(delay); \
CTASSERT(delay > 0); \
static fdt_platform_def_t VAR_NAME ## _fdt_platform = { \
.name = NAME_STR, \
.methods = fdt_platform_methods, \

View File

@ -34,7 +34,6 @@ KERNBASE opt_global.h
KERNVIRTADDR opt_global.h
LINUX_BOOT_ABI opt_global.h
LOADERRAMADDR opt_global.h
MULTIDELAY opt_global.h
NKPT2PG opt_pmap.h
PHYSADDR opt_global.h
PLATFORM opt_global.h