Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 243052
b: refs/heads/master
c: 0cb3fcd
h: refs/heads/master
v: v3
  • Loading branch information
Bibek Basu authored and Linus Walleij committed Mar 28, 2011
1 parent 248c1f7 commit 91fb869
Show file tree
Hide file tree
Showing 77 changed files with 2,399 additions and 3,955 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 32836e082b25f17e7b09f11335b34b039c7568d2
refs/heads/master: 0cb3fcd72cc3e6dd88f0e769746d294e5e6bafa9
1 change: 0 additions & 1 deletion trunk/arch/arm/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -2009,7 +2009,6 @@ menu "Power management options"
source "kernel/power/Kconfig"

config ARCH_SUSPEND_POSSIBLE
depends on !ARCH_S5P64X0 && !ARCH_S5P6442
def_bool y

endmenu
Expand Down
7 changes: 1 addition & 6 deletions trunk/arch/arm/mach-exynos4/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -20,11 +20,6 @@ config EXYNOS4_MCT
help
Use MCT (Multi Core Timer) as kernel timers

config EXYNOS4_DEV_AHCI
bool
help
Compile in platform device definitions for AHCI

config EXYNOS4_DEV_PD
bool
help
Expand Down Expand Up @@ -139,9 +134,9 @@ config MACH_ARMLEX4210
select S3C_DEV_HSMMC
select S3C_DEV_HSMMC2
select S3C_DEV_HSMMC3
select EXYNOS4_DEV_AHCI
select EXYNOS4_DEV_SYSMMU
select EXYNOS4_SETUP_SDHCI
select SATA_AHCI_PLATFORM
help
Machine support for Samsung ARMLEX4210 based on EXYNOS4210

Expand Down
2 changes: 1 addition & 1 deletion trunk/arch/arm/mach-exynos4/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,6 @@ obj-$(CONFIG_MACH_NURI) += mach-nuri.o
# device support

obj-y += dev-audio.o
obj-$(CONFIG_EXYNOS4_DEV_AHCI) += dev-ahci.o
obj-$(CONFIG_EXYNOS4_DEV_PD) += dev-pd.o
obj-$(CONFIG_EXYNOS4_DEV_SYSMMU) += dev-sysmmu.o

Expand All @@ -54,3 +53,4 @@ obj-$(CONFIG_EXYNOS4_SETUP_I2C7) += setup-i2c7.o
obj-$(CONFIG_EXYNOS4_SETUP_KEYPAD) += setup-keypad.o
obj-$(CONFIG_EXYNOS4_SETUP_SDHCI) += setup-sdhci.o
obj-$(CONFIG_EXYNOS4_SETUP_SDHCI_GPIO) += setup-sdhci-gpio.o
obj-$(CONFIG_SATA_AHCI_PLATFORM) += dev-ahci.o
4 changes: 2 additions & 2 deletions trunk/arch/arm/mach-exynos4/include/mach/debug-macro.S
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,8 @@
*/

.macro addruart, rp, rv
ldr \rp, = S3C_PA_UART
ldr \rv, = S3C_VA_UART
ldreq \rp, = S3C_PA_UART
ldrne \rv, = S3C_VA_UART
#if CONFIG_DEBUG_S3C_UART != 0
add \rp, \rp, #(0x10000 * CONFIG_DEBUG_S3C_UART)
add \rv, \rv, #(0x10000 * CONFIG_DEBUG_S3C_UART)
Expand Down
2 changes: 1 addition & 1 deletion trunk/arch/arm/mach-exynos4/mach-smdkc210.c
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,7 @@ static struct resource smdkc210_smsc911x_resources[] = {
};

static struct smsc911x_platform_config smsc9215_config = {
.irq_polarity = SMSC911X_IRQ_POLARITY_ACTIVE_LOW,
.irq_polarity = SMSC911X_IRQ_POLARITY_ACTIVE_HIGH,
.irq_type = SMSC911X_IRQ_TYPE_PUSH_PULL,
.flags = SMSC911X_USE_16BIT | SMSC911X_FORCE_INTERNAL_PHY,
.phy_interface = PHY_INTERFACE_MODE_MII,
Expand Down
2 changes: 1 addition & 1 deletion trunk/arch/arm/mach-exynos4/mach-smdkv310.c
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,7 @@ static struct resource smdkv310_smsc911x_resources[] = {
};

static struct smsc911x_platform_config smsc9215_config = {
.irq_polarity = SMSC911X_IRQ_POLARITY_ACTIVE_LOW,
.irq_polarity = SMSC911X_IRQ_POLARITY_ACTIVE_HIGH,
.irq_type = SMSC911X_IRQ_TYPE_PUSH_PULL,
.flags = SMSC911X_USE_16BIT | SMSC911X_FORCE_INTERNAL_PHY,
.phy_interface = PHY_INTERFACE_MODE_MII,
Expand Down
2 changes: 1 addition & 1 deletion trunk/arch/arm/mach-s5p64x0/cpu.c
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,7 @@ void __init s5p6450_map_io(void)
s3c_adc_setname("s3c64xx-adc");

iotable_init(s5p64x0_iodesc, ARRAY_SIZE(s5p64x0_iodesc));
iotable_init(s5p6450_iodesc, ARRAY_SIZE(s5p6450_iodesc));
iotable_init(s5p6450_iodesc, ARRAY_SIZE(s5p6440_iodesc));
}

/*
Expand Down
6 changes: 3 additions & 3 deletions trunk/arch/arm/mach-s5pv210/include/mach/irqs.h
Original file line number Diff line number Diff line change
Expand Up @@ -99,9 +99,9 @@
#define IRQ_TC IRQ_PENDN
#define IRQ_KEYPAD S5P_IRQ_VIC2(25)
#define IRQ_CG S5P_IRQ_VIC2(26)
#define IRQ_SSS_INT S5P_IRQ_VIC2(27)
#define IRQ_SSS_HASH S5P_IRQ_VIC2(28)
#define IRQ_PCM2 S5P_IRQ_VIC2(29)
#define IRQ_SEC S5P_IRQ_VIC2(27)
#define IRQ_SECRX S5P_IRQ_VIC2(28)
#define IRQ_SECTX S5P_IRQ_VIC2(29)
#define IRQ_SDMIRQ S5P_IRQ_VIC2(30)
#define IRQ_SDMFIQ S5P_IRQ_VIC2(31)

Expand Down
1 change: 1 addition & 0 deletions trunk/arch/arm/mach-s5pv210/mach-smdkv210.c
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,7 @@
#include <plat/keypad.h>
#include <plat/pm.h>
#include <plat/fb.h>
#include <plat/gpio-cfg.h>
#include <plat/s5p-time.h>

/* Following are default values for UCON, ULCON and UFCON UART registers */
Expand Down
8 changes: 4 additions & 4 deletions trunk/arch/arm/plat-s5p/cpu.c
Original file line number Diff line number Diff line change
Expand Up @@ -39,23 +39,23 @@ static const char name_exynos4210[] = "EXYNOS4210";
static struct cpu_table cpu_ids[] __initdata = {
{
.idcode = 0x56440100,
.idmask = 0xfffff000,
.idmask = 0xffffff00,
.map_io = s5p6440_map_io,
.init_clocks = s5p6440_init_clocks,
.init_uarts = s5p6440_init_uarts,
.init = s5p64x0_init,
.name = name_s5p6440,
}, {
.idcode = 0x36442000,
.idmask = 0xfffff000,
.idmask = 0xffffff00,
.map_io = s5p6442_map_io,
.init_clocks = s5p6442_init_clocks,
.init_uarts = s5p6442_init_uarts,
.init = s5p6442_init,
.name = name_s5p6442,
}, {
.idcode = 0x36450000,
.idmask = 0xfffff000,
.idmask = 0xffffff00,
.map_io = s5p6450_map_io,
.init_clocks = s5p6450_init_clocks,
.init_uarts = s5p6450_init_uarts,
Expand All @@ -79,7 +79,7 @@ static struct cpu_table cpu_ids[] __initdata = {
.name = name_s5pv210,
}, {
.idcode = 0x43210000,
.idmask = 0xfffe0000,
.idmask = 0xfffff000,
.map_io = exynos4_map_io,
.init_clocks = exynos4_init_clocks,
.init_uarts = exynos4_init_uarts,
Expand Down
2 changes: 1 addition & 1 deletion trunk/arch/arm/plat-samsung/init.c
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ static struct cpu_table * __init s3c_lookup_cpu(unsigned long idcode,
unsigned int count)
{
for (; count != 0; count--, tab++) {
if ((idcode & tab->idmask) == (tab->idcode & tab->idmask))
if ((idcode & tab->idmask) == tab->idcode)
return tab;
}

Expand Down
2 changes: 0 additions & 2 deletions trunk/arch/score/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,6 @@ menu "Machine selection"
config SCORE
def_bool y
select HAVE_GENERIC_HARDIRQS
select GENERIC_HARDIRQS_NO_DEPRECATED
select GENERIC_IRQ_SHOW

choice
prompt "System type"
Expand Down
2 changes: 1 addition & 1 deletion trunk/arch/score/include/asm/irqflags.h
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ static inline unsigned long arch_local_save_flags(void)

static inline unsigned long arch_local_irq_save(void)
{
unsigned long flags;
unsigned long flags

asm volatile(
" mfcr r8, cr0 \n"
Expand Down
53 changes: 45 additions & 8 deletions trunk/arch/score/kernel/irq.c
Original file line number Diff line number Diff line change
Expand Up @@ -52,9 +52,9 @@ asmlinkage void do_IRQ(int irq)
irq_exit();
}

static void score_mask(struct irq_data *d)
static void score_mask(unsigned int irq_nr)
{
unsigned int irq_source = 63 - d->irq;
unsigned int irq_source = 63 - irq_nr;

if (irq_source < 32)
__raw_writel((__raw_readl(SCORE_PIC + INT_MASKL) | \
Expand All @@ -64,9 +64,9 @@ static void score_mask(struct irq_data *d)
(1 << (irq_source - 32))), SCORE_PIC + INT_MASKH);
}

static void score_unmask(struct irq_data *d)
static void score_unmask(unsigned int irq_nr)
{
unsigned int irq_source = 63 - d->irq;
unsigned int irq_source = 63 - irq_nr;

if (irq_source < 32)
__raw_writel((__raw_readl(SCORE_PIC + INT_MASKL) & \
Expand All @@ -78,9 +78,9 @@ static void score_unmask(struct irq_data *d)

struct irq_chip score_irq_chip = {
.name = "Score7-level",
.irq_mask = score_mask,
.irq_mask_ack = score_mask,
.irq_unmask = score_unmask,
.mask = score_mask,
.mask_ack = score_mask,
.unmask = score_unmask,
};

/*
Expand All @@ -92,7 +92,7 @@ void __init init_IRQ(void)
unsigned long target_addr;

for (index = 0; index < NR_IRQS; ++index)
irq_set_chip_and_handler(index, &score_irq_chip,
set_irq_chip_and_handler(index, &score_irq_chip,
handle_level_irq);

for (target_addr = IRQ_VECTOR_BASE_ADDR;
Expand All @@ -109,3 +109,40 @@ void __init init_IRQ(void)
: : "r" (EXCEPTION_VECTOR_BASE_ADDR | \
VECTOR_ADDRESS_OFFSET_MODE16));
}

/*
* Generic, controller-independent functions:
*/
int show_interrupts(struct seq_file *p, void *v)
{
int i = *(loff_t *)v, cpu;
struct irqaction *action;
unsigned long flags;

if (i == 0) {
seq_puts(p, " ");
for_each_online_cpu(cpu)
seq_printf(p, "CPU%d ", cpu);
seq_putc(p, '\n');
}

if (i < NR_IRQS) {
spin_lock_irqsave(&irq_desc[i].lock, flags);
action = irq_desc[i].action;
if (!action)
goto unlock;

seq_printf(p, "%3d: ", i);
seq_printf(p, "%10u ", kstat_irqs(i));
seq_printf(p, " %8s", irq_desc[i].chip->name ? : "-");
seq_printf(p, " %s", action->name);
for (action = action->next; action; action = action->next)
seq_printf(p, ", %s", action->name);

seq_putc(p, '\n');
unlock:
spin_unlock_irqrestore(&irq_desc[i].lock, flags);
}

return 0;
}
1 change: 0 additions & 1 deletion trunk/arch/tile/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@ config TILE
select GENERIC_IRQ_PROBE
select GENERIC_PENDING_IRQ if SMP
select GENERIC_HARDIRQS_NO_DEPRECATED
select GENERIC_IRQ_SHOW

# FIXME: investigate whether we need/want these options.
# select HAVE_IOREMAP_PROT
Expand Down
45 changes: 43 additions & 2 deletions trunk/arch/tile/kernel/irq.c
Original file line number Diff line number Diff line change
Expand Up @@ -241,14 +241,14 @@ void tile_irq_activate(unsigned int irq, int tile_irq_type)
irq_flow_handler_t handle = handle_level_irq;
if (tile_irq_type == TILE_IRQ_PERCPU)
handle = handle_percpu_irq;
irq_set_chip_and_handler(irq, &tile_irq_chip, handle);
set_irq_chip_and_handler(irq, &tile_irq_chip, handle);

/*
* Flag interrupts that are hardware-cleared so that ack()
* won't clear them.
*/
if (tile_irq_type == TILE_IRQ_HW_CLEAR)
irq_set_chip_data(irq, (void *)IS_HW_CLEARED);
set_irq_chip_data(irq, (void *)IS_HW_CLEARED);
}
EXPORT_SYMBOL(tile_irq_activate);

Expand All @@ -262,6 +262,47 @@ void ack_bad_irq(unsigned int irq)
* Generic, controller-independent functions:
*/

int show_interrupts(struct seq_file *p, void *v)
{
int i = *(loff_t *) v, j;
struct irqaction *action;
unsigned long flags;

if (i == 0) {
seq_printf(p, " ");
for (j = 0; j < NR_CPUS; j++)
if (cpu_online(j))
seq_printf(p, "CPU%-8d", j);
seq_putc(p, '\n');
}

if (i < NR_IRQS) {
struct irq_desc *desc = irq_to_desc(i);

raw_spin_lock_irqsave(&desc->lock, flags);
action = desc->action;
if (!action)
goto skip;
seq_printf(p, "%3d: ", i);
#ifndef CONFIG_SMP
seq_printf(p, "%10u ", kstat_irqs(i));
#else
for_each_online_cpu(j)
seq_printf(p, "%10u ", kstat_irqs_cpu(i, j));
#endif
seq_printf(p, " %14s", get_irq_desc_chip(desc)->name);
seq_printf(p, " %s", action->name);

for (action = action->next; action; action = action->next)
seq_printf(p, ", %s", action->name);

seq_putc(p, '\n');
skip:
raw_spin_unlock_irqrestore(&desc->lock, flags);
}
return 0;
}

#if CHIP_HAS_IPI()
int create_irq(void)
{
Expand Down
5 changes: 1 addition & 4 deletions trunk/arch/x86/crypto/aesni-intel_asm.S
Original file line number Diff line number Diff line change
Expand Up @@ -1612,7 +1612,6 @@ _zero_cipher_left_encrypt:
movdqa SHUF_MASK(%rip), %xmm10
PSHUFB_XMM %xmm10, %xmm0


ENCRYPT_SINGLE_BLOCK %xmm0, %xmm1 # Encrypt(K, Yn)
sub $16, %r11
add %r13, %r11
Expand All @@ -1635,9 +1634,7 @@ _zero_cipher_left_encrypt:
# GHASH computation for the last <16 byte block
sub %r13, %r11
add $16, %r11

movdqa SHUF_MASK(%rip), %xmm10
PSHUFB_XMM %xmm10, %xmm0
PSHUFB_XMM %xmm10, %xmm1

# shuffle xmm0 back to output as ciphertext

Expand Down
Loading

0 comments on commit 91fb869

Please sign in to comment.