Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 86942
b: refs/heads/master
c: e000752
h: refs/heads/master
v: v3
  • Loading branch information
Eric Paris authored and James Morris committed Mar 5, 2008
1 parent 3a52b86 commit 4ccb1a8
Show file tree
Hide file tree
Showing 27 changed files with 253 additions and 221 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: 9af6b056a281c81ae6043e0f5b4e2cb323f5bb43
refs/heads/master: e0007529893c1c064be90bd21422ca0da4a0198e
4 changes: 0 additions & 4 deletions trunk/arch/s390/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -351,10 +351,6 @@ endchoice

source "fs/Kconfig.binfmt"

config FORCE_MAX_ZONEORDER
int
default "9"

config PROCESS_DEBUG
bool "Show crashed user process info"
help
Expand Down
18 changes: 5 additions & 13 deletions trunk/arch/s390/defconfig
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#
# Automatically generated make config: don't edit
# Linux kernel version: 2.6.25-rc4
# Wed Mar 5 11:22:59 2008
# Linux kernel version: 2.6.24
# Sat Feb 9 12:13:01 2008
#
CONFIG_MMU=y
CONFIG_ZONE_DMA=y
Expand Down Expand Up @@ -43,15 +43,12 @@ CONFIG_CGROUPS=y
# CONFIG_CGROUP_DEBUG is not set
CONFIG_CGROUP_NS=y
# CONFIG_CPUSETS is not set
CONFIG_GROUP_SCHED=y
CONFIG_FAIR_GROUP_SCHED=y
# CONFIG_RT_GROUP_SCHED is not set
CONFIG_USER_SCHED=y
# CONFIG_CGROUP_SCHED is not set
CONFIG_FAIR_USER_SCHED=y
# CONFIG_FAIR_CGROUP_SCHED is not set
# CONFIG_CGROUP_CPUACCT is not set
# CONFIG_RESOURCE_COUNTERS is not set
CONFIG_SYSFS_DEPRECATED=y
CONFIG_SYSFS_DEPRECATED_V2=y
# CONFIG_RELAY is not set
CONFIG_NAMESPACES=y
CONFIG_UTS_NS=y
Expand Down Expand Up @@ -88,9 +85,7 @@ CONFIG_SLAB=y
# CONFIG_MARKERS is not set
CONFIG_HAVE_OPROFILE=y
CONFIG_KPROBES=y
CONFIG_KRETPROBES=y
CONFIG_HAVE_KPROBES=y
CONFIG_HAVE_KRETPROBES=y
CONFIG_PROC_PAGE_MONITOR=y
CONFIG_SLABINFO=y
CONFIG_RT_MUTEXES=y
Expand Down Expand Up @@ -190,7 +185,6 @@ CONFIG_IPL=y
CONFIG_IPL_VM=y
CONFIG_BINFMT_ELF=y
CONFIG_BINFMT_MISC=m
CONFIG_FORCE_MAX_ZONEORDER=9
# CONFIG_PROCESS_DEBUG is not set
CONFIG_PFAULT=y
# CONFIG_SHARED_KERNEL is not set
Expand Down Expand Up @@ -441,7 +435,6 @@ CONFIG_DASD_EER=y
CONFIG_MISC_DEVICES=y
# CONFIG_EEPROM_93CX6 is not set
# CONFIG_ENCLOSURE_SERVICES is not set
# CONFIG_HAVE_IDE is not set

#
# SCSI device support
Expand Down Expand Up @@ -600,7 +593,6 @@ CONFIG_S390_VMUR=m
#
# Sonics Silicon Backplane
#
# CONFIG_MEMSTICK is not set

#
# File systems
Expand Down Expand Up @@ -758,6 +750,7 @@ CONFIG_DEBUG_BUGVERBOSE=y
# CONFIG_DEBUG_LIST is not set
# CONFIG_DEBUG_SG is not set
# CONFIG_FRAME_POINTER is not set
CONFIG_FORCED_INLINING=y
# CONFIG_RCU_TORTURE_TEST is not set
# CONFIG_KPROBES_SANITY_TEST is not set
# CONFIG_BACKTRACE_SELF_TEST is not set
Expand All @@ -766,7 +759,6 @@ CONFIG_DEBUG_BUGVERBOSE=y
# CONFIG_LATENCYTOP is not set
CONFIG_SAMPLES=y
# CONFIG_SAMPLE_KOBJECT is not set
# CONFIG_SAMPLE_KPROBES is not set
# CONFIG_DEBUG_PAGEALLOC is not set

#
Expand Down
5 changes: 0 additions & 5 deletions trunk/arch/s390/kernel/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,6 @@

EXTRA_AFLAGS := -traditional

#
# Passing null pointers is ok for smp code, since we access the lowcore here.
#
CFLAGS_smp.o := -Wno-nonnull

obj-y := bitmap.o traps.o time.o process.o base.o early.o \
setup.o sys_s390.o ptrace.o signal.o cpcmd.o ebcdic.o \
semaphore.o s390_ext.o debug.o irq.o ipl.o dis.o diag.o
Expand Down
8 changes: 2 additions & 6 deletions trunk/arch/s390/kernel/early.c
Original file line number Diff line number Diff line change
Expand Up @@ -88,17 +88,13 @@ static noinline __init void create_kernel_nss(void)

__cpcmd(defsys_cmd, NULL, 0, &response);

if (response != 0) {
kernel_nss_name[0] = '\0';
if (response != 0)
return;
}

__cpcmd(savesys_cmd, NULL, 0, &response);

if (response != strlen(savesys_cmd)) {
kernel_nss_name[0] = '\0';
if (response != strlen(savesys_cmd))
return;
}

ipl_flags = IPL_NSS_VALID;
}
Expand Down
1 change: 0 additions & 1 deletion trunk/arch/s390/kernel/ipl.c
Original file line number Diff line number Diff line change
Expand Up @@ -704,7 +704,6 @@ void reipl_run(struct shutdown_trigger *trigger)
default:
break;
}
disabled_wait((unsigned long) __builtin_return_address(0));
}

static void __init reipl_probe(void)
Expand Down
4 changes: 0 additions & 4 deletions trunk/arch/s390/kernel/process.c
Original file line number Diff line number Diff line change
Expand Up @@ -152,10 +152,6 @@ static void default_idle(void)
local_mcck_disable();
if (test_thread_flag(TIF_MCCK_PENDING)) {
local_mcck_enable();
/* disable monitor call class 0 */
__ctl_clear_bit(8, 15);
atomic_notifier_call_chain(&idle_chain, S390_CPU_NOT_IDLE,
hcpu);
local_irq_enable();
s390_handle_mcck();
return;
Expand Down
10 changes: 8 additions & 2 deletions trunk/arch/s390/kernel/smp.c
Original file line number Diff line number Diff line change
Expand Up @@ -629,8 +629,14 @@ static int __cpuinit smp_alloc_lowcore(int cpu)
panic_stack = __get_free_page(GFP_KERNEL);
if (!panic_stack || !async_stack)
goto out;
memcpy(lowcore, &S390_lowcore, 512);
memset((char *)lowcore + 512, 0, sizeof(*lowcore) - 512);
/*
* Only need to copy the first 512 bytes from address 0. But since
* the compiler emits a warning if src == NULL for memcpy use copy_page
* instead. Copies more than needed but this code is not performance
* critical.
*/
copy_page(lowcore, &S390_lowcore);
memset((void *)lowcore + 512, 0, sizeof(*lowcore) - 512);
lowcore->async_stack = async_stack + ASYNC_SIZE;
lowcore->panic_stack = panic_stack + PAGE_SIZE;

Expand Down
2 changes: 2 additions & 0 deletions trunk/arch/s390/kernel/time.c
Original file line number Diff line number Diff line change
Expand Up @@ -209,6 +209,8 @@ static void stop_hz_timer(void)
*/
static void start_hz_timer(void)
{
BUG_ON(!in_interrupt());

if (!cpu_isset(smp_processor_id(), nohz_cpu_mask))
return;
account_ticks(get_clock());
Expand Down
8 changes: 2 additions & 6 deletions trunk/arch/x86/kernel/cpu/cpufreq/e_powersaver.c
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,7 @@ static int eps_set_state(struct eps_cpu_data *centaur,
{
struct cpufreq_freqs freqs;
u32 lo, hi;
u8 current_multiplier, current_voltage;
int err = 0;
int i;

Expand Down Expand Up @@ -94,10 +95,6 @@ static int eps_set_state(struct eps_cpu_data *centaur,
rdmsr(MSR_IA32_PERF_STATUS, lo, hi);
freqs.new = centaur->fsb * ((lo >> 8) & 0xff);

#ifdef DEBUG
{
u8 current_multiplier, current_voltage;

/* Print voltage and multiplier */
rdmsr(MSR_IA32_PERF_STATUS, lo, hi);
current_voltage = lo & 0xff;
Expand All @@ -106,8 +103,7 @@ static int eps_set_state(struct eps_cpu_data *centaur,
current_multiplier = (lo >> 8) & 0xff;
printk(KERN_INFO "eps: Current multiplier = %d\n",
current_multiplier);
}
#endif

cpufreq_notify_transition(&freqs, CPUFREQ_POSTCHANGE);
return err;
}
Expand Down
14 changes: 1 addition & 13 deletions trunk/drivers/ata/ahci.c
Original file line number Diff line number Diff line change
Expand Up @@ -186,7 +186,6 @@ enum {
AHCI_HFLAG_NO_MSI = (1 << 5), /* no PCI MSI */
AHCI_HFLAG_NO_PMP = (1 << 6), /* no PMP */
AHCI_HFLAG_NO_HOTPLUG = (1 << 7), /* ignore PxSERR.DIAG.N */
AHCI_HFLAG_SECT255 = (1 << 8), /* max 255 sectors */

/* ap->flags bits */

Expand Down Expand Up @@ -256,7 +255,6 @@ static void ahci_vt8251_error_handler(struct ata_port *ap);
static void ahci_p5wdh_error_handler(struct ata_port *ap);
static void ahci_post_internal_cmd(struct ata_queued_cmd *qc);
static int ahci_port_resume(struct ata_port *ap);
static void ahci_dev_config(struct ata_device *dev);
static unsigned int ahci_fill_sg(struct ata_queued_cmd *qc, void *cmd_tbl);
static void ahci_fill_cmd_slot(struct ahci_port_priv *pp, unsigned int tag,
u32 opts);
Expand Down Expand Up @@ -296,8 +294,6 @@ static const struct ata_port_operations ahci_ops = {
.check_altstatus = ahci_check_status,
.dev_select = ata_noop_dev_select,

.dev_config = ahci_dev_config,

.tf_read = ahci_tf_read,

.qc_defer = sata_pmp_qc_defer_cmd_switch,
Expand Down Expand Up @@ -429,7 +425,7 @@ static const struct ata_port_info ahci_port_info[] = {
/* board_ahci_sb600 */
{
AHCI_HFLAGS (AHCI_HFLAG_IGN_SERR_INTERNAL |
AHCI_HFLAG_SECT255 | AHCI_HFLAG_NO_PMP),
AHCI_HFLAG_32BIT_ONLY | AHCI_HFLAG_NO_PMP),
.flags = AHCI_FLAG_COMMON,
.link_flags = AHCI_LFLAG_COMMON,
.pio_mask = 0x1f, /* pio0-4 */
Expand Down Expand Up @@ -1180,14 +1176,6 @@ static void ahci_init_controller(struct ata_host *host)
VPRINTK("HOST_CTL 0x%x\n", tmp);
}

static void ahci_dev_config(struct ata_device *dev)
{
struct ahci_host_priv *hpriv = dev->link->ap->host->private_data;

if (hpriv->flags & AHCI_HFLAG_SECT255)
dev->max_sectors = 255;
}

static unsigned int ahci_dev_classify(struct ata_port *ap)
{
void __iomem *port_mmio = ahci_port_base(ap);
Expand Down
6 changes: 3 additions & 3 deletions trunk/drivers/ata/pata_hpt366.c
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
#include <linux/libata.h>

#define DRV_NAME "pata_hpt366"
#define DRV_VERSION "0.6.2"
#define DRV_VERSION "0.6.1"

struct hpt_clock {
u8 xfer_speed;
Expand Down Expand Up @@ -180,9 +180,9 @@ static unsigned long hpt366_filter(struct ata_device *adev, unsigned long mask)
if (hpt_dma_blacklisted(adev, "UDMA", bad_ata33))
mask &= ~ATA_MASK_UDMA;
if (hpt_dma_blacklisted(adev, "UDMA3", bad_ata66_3))
mask &= ~(0xF8 << ATA_SHIFT_UDMA);
mask &= ~(0x07 << ATA_SHIFT_UDMA);
if (hpt_dma_blacklisted(adev, "UDMA4", bad_ata66_4))
mask &= ~(0xF0 << ATA_SHIFT_UDMA);
mask &= ~(0x0F << ATA_SHIFT_UDMA);
}
return ata_pci_default_filter(adev, mask);
}
Expand Down
6 changes: 3 additions & 3 deletions trunk/drivers/ata/pata_hpt37x.c
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
#include <linux/libata.h>

#define DRV_NAME "pata_hpt37x"
#define DRV_VERSION "0.6.11"
#define DRV_VERSION "0.6.9"

struct hpt_clock {
u8 xfer_speed;
Expand Down Expand Up @@ -281,7 +281,7 @@ static unsigned long hpt370_filter(struct ata_device *adev, unsigned long mask)
if (hpt_dma_blacklisted(adev, "UDMA", bad_ata33))
mask &= ~ATA_MASK_UDMA;
if (hpt_dma_blacklisted(adev, "UDMA100", bad_ata100_5))
mask &= ~(0xE0 << ATA_SHIFT_UDMA);
mask &= ~(0x1F << ATA_SHIFT_UDMA);
}
return ata_pci_default_filter(adev, mask);
}
Expand All @@ -297,7 +297,7 @@ static unsigned long hpt370a_filter(struct ata_device *adev, unsigned long mask)
{
if (adev->class == ATA_DEV_ATA) {
if (hpt_dma_blacklisted(adev, "UDMA100", bad_ata100_5))
mask &= ~(0xE0 << ATA_SHIFT_UDMA);
mask &= ~ (0x1F << ATA_SHIFT_UDMA);
}
return ata_pci_default_filter(adev, mask);
}
Expand Down
2 changes: 1 addition & 1 deletion trunk/drivers/ata/pata_serverworks.c
Original file line number Diff line number Diff line change
Expand Up @@ -226,7 +226,7 @@ static unsigned long serverworks_csb_filter(struct ata_device *adev, unsigned lo

for (i = 0; (p = csb_bad_ata100[i]) != NULL; i++) {
if (!strcmp(p, model_num))
mask &= ~(0xE0 << ATA_SHIFT_UDMA);
mask &= ~(0x1F << ATA_SHIFT_UDMA);
}
return ata_pci_default_filter(adev, mask);
}
Expand Down
20 changes: 9 additions & 11 deletions trunk/drivers/cpufreq/cpufreq.c
Original file line number Diff line number Diff line change
Expand Up @@ -671,23 +671,22 @@ static ssize_t show(struct kobject * kobj, struct attribute * attr ,char * buf)
{
struct cpufreq_policy * policy = to_policy(kobj);
struct freq_attr * fattr = to_attr(attr);
ssize_t ret = -EINVAL;
ssize_t ret;
policy = cpufreq_cpu_get(policy->cpu);
if (!policy)
goto no_policy;
return -EINVAL;

if (lock_policy_rwsem_read(policy->cpu) < 0)
goto fail;
return -EINVAL;

if (fattr->show)
ret = fattr->show(policy, buf);
else
ret = -EIO;

unlock_policy_rwsem_read(policy->cpu);
fail:

cpufreq_cpu_put(policy);
no_policy:
return ret;
}

Expand All @@ -696,23 +695,22 @@ static ssize_t store(struct kobject * kobj, struct attribute * attr,
{
struct cpufreq_policy * policy = to_policy(kobj);
struct freq_attr * fattr = to_attr(attr);
ssize_t ret = -EINVAL;
ssize_t ret;
policy = cpufreq_cpu_get(policy->cpu);
if (!policy)
goto no_policy;
return -EINVAL;

if (lock_policy_rwsem_write(policy->cpu) < 0)
goto fail;
return -EINVAL;

if (fattr->store)
ret = fattr->store(policy, buf, count);
else
ret = -EIO;

unlock_policy_rwsem_write(policy->cpu);
fail:

cpufreq_cpu_put(policy);
no_policy:
return ret;
}

Expand Down Expand Up @@ -1777,7 +1775,7 @@ static int __cpuinit cpufreq_cpu_callback(struct notifier_block *nfb,
return NOTIFY_OK;
}

static struct notifier_block __refdata cpufreq_cpu_notifier =
static struct notifier_block __cpuinitdata cpufreq_cpu_notifier =
{
.notifier_call = cpufreq_cpu_callback,
};
Expand Down
2 changes: 1 addition & 1 deletion trunk/drivers/cpufreq/cpufreq_stats.c
Original file line number Diff line number Diff line change
Expand Up @@ -323,7 +323,7 @@ static int __cpuinit cpufreq_stat_cpu_callback(struct notifier_block *nfb,
return NOTIFY_OK;
}

static struct notifier_block cpufreq_stat_cpu_notifier __refdata =
static struct notifier_block cpufreq_stat_cpu_notifier __cpuinitdata =
{
.notifier_call = cpufreq_stat_cpu_callback,
};
Expand Down
6 changes: 4 additions & 2 deletions trunk/drivers/s390/block/dasd_3990_erp.c
Original file line number Diff line number Diff line change
Expand Up @@ -2310,8 +2310,10 @@ static int
dasd_3990_erp_error_match(struct dasd_ccw_req *cqr1, struct dasd_ccw_req *cqr2)
{

if (cqr1->startdev != cqr2->startdev)
return 0;
/* check failed CCW */
if (cqr1->irb.scsw.cpa != cqr2->irb.scsw.cpa) {
// return 0; /* CCW doesn't match */
}

if (cqr1->irb.esw.esw0.erw.cons != cqr2->irb.esw.esw0.erw.cons)
return 0;
Expand Down
Loading

0 comments on commit 4ccb1a8

Please sign in to comment.