···239239#define DEFAULT_DATA_SECTION_ALIGNMENT 4240240#define DEFAULT_BSS_SECTION_ALIGNMENT 4241241#define DEFAULT_TEXT_SECTION_ALIGNMENT 4242242-/* For new sections we havn't heard of before */242242+/* For new sections we haven't heard of before */243243#define DEFAULT_SECTION_ALIGNMENT 4
+1-1
arch/powerpc/boot/treeboot-akebono.c
···38383939BSS_STACK(4096);40404141-#define SPRN_PIR 0x11E /* Processor Indentification Register */4141+#define SPRN_PIR 0x11E /* Processor Identification Register */4242#define USERDATA_LEN 256 /* Length of userdata passed in by PIBS */4343#define MAX_RANKS 0x44444#define DDR3_MR0CF 0x80010011U
···6161 * via bl/blr. It expects that caller has pre-xored input data with first6262 * 4 words of encryption key into rD0-rD3. Pointer/counter registers must6363 * have also been set up before (rT0, rKP, CTR). Output is stored in rD0-rD36464- * and rW0-rW3 and caller must execute a final xor on the ouput registers.6464+ * and rW0-rW3 and caller must execute a final xor on the output registers.6565 * All working registers rD0-rD3 & rW0-rW7 are overwritten during processing.6666 *6767 */···209209 * via bl/blr. It expects that caller has pre-xored input data with first210210 * 4 words of encryption key into rD0-rD3. Pointer/counter registers must211211 * have also been set up before (rT0, rKP, CTR). Output is stored in rD0-rD3212212- * and rW0-rW3 and caller must execute a final xor on the ouput registers.212212+ * and rW0-rW3 and caller must execute a final xor on the output registers.213213 * All working registers rD0-rD3 & rW0-rW7 are overwritten during processing.214214 *215215 */
+1-1
arch/powerpc/crypto/aes-spe-glue.c
···3232 * 16 byte block block or 25 cycles per byte. Thus 768 bytes of input data3333 * will need an estimated maximum of 20,000 cycles. Headroom for cache misses3434 * included. Even with the low end model clocked at 667 MHz this equals to a3535- * critical time window of less than 30us. The value has been choosen to3535+ * critical time window of less than 30us. The value has been chosen to3636 * process a 512 byte disk block in one or a large 1400 bytes IPsec network3737 * packet in two runs.3838 *
+1-1
arch/powerpc/include/asm/hydra.h
···8989#define HYDRA_INT_EXT2 13 /* PCI IRQX */9090#define HYDRA_INT_EXT3 14 /* PCI IRQY */9191#define HYDRA_INT_EXT4 15 /* PCI IRQZ */9292-#define HYDRA_INT_EXT5 16 /* IDE Primay/Secondary */9292+#define HYDRA_INT_EXT5 16 /* IDE Primary/Secondary */9393#define HYDRA_INT_EXT6 17 /* IDE Secondary */9494#define HYDRA_INT_EXT7 18 /* Power Off Request */9595#define HYDRA_INT_SPARE 19
+1-1
arch/powerpc/include/asm/io.h
···300300 * When CONFIG_PPC_INDIRECT_MMIO is set, the platform can provide hooks301301 * on all MMIOs. (Note that this is all 64 bits only for now)302302 *303303- * To help platforms who may need to differenciate MMIO addresses in303303+ * To help platforms who may need to differentiate MMIO addresses in304304 * their hooks, a bitfield is reserved for use by the platform near the305305 * top of MMIO addresses (not PIO, those have to cope the hard way).306306 *
+2-2
arch/powerpc/include/asm/machdep.h
···174174 platform, called once per cpu. */175175 void (*enable_pmcs)(void);176176177177- /* Set DABR for this platform, leave empty for default implemenation */177177+ /* Set DABR for this platform, leave empty for default implementation */178178 int (*set_dabr)(unsigned long dabr,179179 unsigned long dabrx);180180181181- /* Set DAWR for this platform, leave empty for default implemenation */181181+ /* Set DAWR for this platform, leave empty for default implementation */182182 int (*set_dawr)(unsigned long dawr,183183 unsigned long dawrx);184184
+1-1
arch/powerpc/include/asm/module.h
···1919 * Thanks to Paul M for explaining this.2020 *2121 * PPC can only do rel jumps += 32MB, and often the kernel and other2222- * modules are furthur away than this. So, we jump to a table of2222+ * modules are further away than this. So, we jump to a table of2323 * trampolines attached to the module (the Procedure Linkage Table)2424 * whenever that happens.2525 */
+1-1
arch/powerpc/include/asm/pmac_feature.h
···46464747/* PowerSurge are the first generation of PCI Pmacs. This include4848 * all of the Grand-Central based machines. We currently don't4949- * differenciate most of them.4949+ * differentiate most of them.5050 */5151#define PMAC_TYPE_PSURGE 0x10 /* PowerSurge */5252#define PMAC_TYPE_ANS 0x11 /* Apple Network Server */
···681681#define SPRN_CDBCR 0x3D7 /* Cache Debug Control Register */682682#define SPRN_TBHI 0x3DC /* Time Base High */683683#define SPRN_TBLO 0x3DD /* Time Base Low */684684-#define SPRN_DBCR 0x3F2 /* Debug Control Regsiter */684684+#define SPRN_DBCR 0x3F2 /* Debug Control Register */685685#define SPRN_PBL1 0x3FC /* Protection Bound Lower 1 */686686#define SPRN_PBL2 0x3FE /* Protection Bound Lower 2 */687687#define SPRN_PBU1 0x3FD /* Protection Bound Upper 1 */
+1-1
arch/powerpc/include/asm/smu.h
···154154 *155155 * The Darwin I2C driver is less subtle though. On any non-success status156156 * from the response command, it waits 5ms and tries again up to 20 times,157157- * it doesn't differenciate between fatal errors or "busy" status.157157+ * it doesn't differentiate between fatal errors or "busy" status.158158 *159159 * This driver provides an asynchronous paramblock based i2c command160160 * interface to be used either directly by low level code or by a higher
+1-1
arch/powerpc/include/asm/uninorth.h
···132132133133/* This one _might_ return the CPU number of the CPU reading it;134134 * the bootROM decides whether to boot or to sleep/spinloop depending135135- * on this register beeing 0 or not135135+ * on this register being 0 or not136136 */137137#define UNI_N_CPU_NUMBER 0x0050138138
+1-1
arch/powerpc/include/asm/xics.h
···11/*22- * Common definitions accross all variants of ICP and ICS interrupt22+ * Common definitions across all variants of ICP and ICS interrupt33 * controllers.44 */55
+2-2
arch/powerpc/include/uapi/asm/epapr_hcalls.h
···7878#define EV_SUCCESS 07979#define EV_EPERM 1 /* Operation not permitted */8080#define EV_ENOENT 2 /* Entry Not Found */8181-#define EV_EIO 3 /* I/O error occured */8181+#define EV_EIO 3 /* I/O error occurred */8282#define EV_EAGAIN 4 /* The operation had insufficient8383 * resources to complete and should be8484 * retried···8989#define EV_ENODEV 7 /* No such device */9090#define EV_EINVAL 8 /* An argument supplied to the hcall9191 was out of range or invalid */9292-#define EV_INTERNAL 9 /* An internal error occured */9292+#define EV_INTERNAL 9 /* An internal error occurred */9393#define EV_CONFIG 10 /* A configuration error was detected */9494#define EV_INVALID_STATE 11 /* The object is in an invalid state */9595#define EV_UNIMPLEMENTED 12 /* Unimplemented hypercall */
+1-1
arch/powerpc/kernel/head_44x.S
···806806_GLOBAL(init_cpu_state)807807 mflr r22808808#ifdef CONFIG_PPC_47x809809- /* We use the PVR to differenciate 44x cores from 476 */809809+ /* We use the PVR to differentiate 44x cores from 476 */810810 mfspr r3,SPRN_PVR811811 srwi r3,r3,16812812 cmplwi cr0,r3,PVR_476FPE@h
+2-2
arch/powerpc/kernel/signal.c
···11/*22 * Common signal handling code for both 32 and 64 bits33 *44- * Copyright (c) 2007 Benjamin Herrenschmidt, IBM Coproration44+ * Copyright (c) 2007 Benjamin Herrenschmidt, IBM Corporation55 * Extracted from signal_32.c and signal_64.c66 *77 * This file is subject to the terms and conditions of the GNU General···178178 * need to use the stack pointer from the checkpointed state, rather179179 * than the speculated state. This ensures that the signal context180180 * (written tm suspended) will be written below the stack required for181181- * the rollback. The transaction is aborted becuase of the treclaim,181181+ * the rollback. The transaction is aborted because of the treclaim,182182 * so any memory written between the tbegin and the signal will be183183 * rolled back anyway.184184 *
+1-1
arch/powerpc/kernel/signal.h
···11/*22- * Copyright (c) 2007 Benjamin Herrenschmidt, IBM Coproration22+ * Copyright (c) 2007 Benjamin Herrenschmidt, IBM Corporation33 * Extracted from signal_32.c and signal_64.c44 *55 * This file is subject to the terms and conditions of the GNU General
+1-1
arch/powerpc/kernel/traps.c
···14021402 * is a read DSCR attempt through a mfspr instruction, we14031403 * just emulate the instruction instead. This code path will14041404 * always emulate all the mfspr instructions till the user14051405- * has attempted atleast one mtspr instruction. This way it14051405+ * has attempted at least one mtspr instruction. This way it14061406 * preserves the same behaviour when the user is accessing14071407 * the DSCR through privilege level only SPR number (0x11)14081408 * which is emulated through illegal instruction exception.
+1-1
arch/powerpc/kvm/book3s_xics.c
···432432 * the whole masked_pending business which is about not433433 * losing interrupts that occur while masked.434434 *435435- * I don't differenciate normal deliveries and resends, this435435+ * I don't differentiate normal deliveries and resends, this436436 * implementation will differ from PAPR and not lose such437437 * interrupts.438438 */
+1-1
arch/powerpc/kvm/booke.c
···992992 kvmppc_restart_interrupt(vcpu, exit_nr);993993994994 /*995995- * get last instruction before beeing preempted995995+ * get last instruction before being preempted996996 * TODO: for e6500 check also BOOKE_INTERRUPT_LRAT_ERROR & ESR_DATA997997 */998998 switch (exit_nr) {
+1-1
arch/powerpc/kvm/e500mc.c
···182182 r = 0;183183#ifdef CONFIG_ALTIVEC184184 /*185185- * Since guests have the priviledge to enable AltiVec, we need AltiVec185185+ * Since guests have the privilege to enable AltiVec, we need AltiVec186186 * support in the host to save/restore their context.187187 * Don't use CPU_FTR_ALTIVEC to identify cores with AltiVec unit188188 * because it's cleared in the absence of CONFIG_ALTIVEC!
+1-1
arch/powerpc/mm/tlb_low_64e.S
···895895BEGIN_MMU_FTR_SECTION896896virt_page_table_tlb_miss_done:897897898898- /* We have overriden MAS2:EPN but currently our primary TLB miss898898+ /* We have overridden MAS2:EPN but currently our primary TLB miss899899 * handler will always restore it so that should not be an issue,900900 * if we ever optimize the primary handler to not write MAS2 on901901 * some cases, we'll have to restore MAS2:EPN here based on the
+2-2
arch/powerpc/mm/tlb_nohash_low.S
···108108 blr1091092:110110#ifdef CONFIG_PPC_47x111111- oris r7,r6,0x8000 /* specify way explicitely */111111+ oris r7,r6,0x8000 /* specify way explicitly */112112 clrrwi r4,r3,12 /* get an EPN for the hashing with V = 0 */113113 ori r4,r4,PPC47x_TLBE_SIZE114114 tlbwe r4,r7,0 /* write it */···149149 li r3,-1 /* Current set */150150 lis r10,tlb_47x_boltmap@h151151 ori r10,r10,tlb_47x_boltmap@l152152- lis r7,0x8000 /* Specify way explicitely */152152+ lis r7,0x8000 /* Specify way explicitly */153153154154 b 9f /* For each set */155155
+2-2
arch/powerpc/oprofile/op_model_cell.c
···208208209209 /*210210 * The debug bus is being set to the passthru disable state.211211- * However, the FW still expects atleast one legal signal routing211211+ * However, the FW still expects at least one legal signal routing212212 * entry or it will return an error on the arguments. If we don't213213 * supply a valid entry, we must ignore all return values. Ignoring214214 * all return values means we might miss an error we should be···10081008 *10091009 * To avoid the time to compute the LFSR, a lookup table is used. The 24 bit10101010 * LFSR sequence is broken into four ranges. The spacing of the precomputed10111011- * values is adjusted in each range so the error between the user specifed10111011+ * values is adjusted in each range so the error between the user specified10121012 * number (N) of events between samples and the actual number of events based10131013 * on the precomputed value will be les then about 6.2%. Note, if the user10141014 * specifies N < 2^16, the LFSR value that is 2^16 from the end will be used.
+1-1
arch/powerpc/perf/hv-24x7.h
···8080 __u8 results_complete;8181 __be16 num_elements_returned;82828383- /* This is a copy of @data_size from the coresponding hv_24x7_request */8383+ /* This is a copy of @data_size from the corresponding hv_24x7_request */8484 __be16 result_element_data_size;8585 __u8 reserved[0x2];8686
+1-1
arch/powerpc/perf/power8-pmu.c
···415415 pmc_inuse |= 1 << pmc;416416 }417417418418- /* In continous sampling mode, update SDAR on TLB miss */418418+ /* In continuous sampling mode, update SDAR on TLB miss */419419 mmcra = MMCRA_SDAR_MODE_TLB;420420 mmcr1 = mmcr2 = 0;421421
+1-1
arch/powerpc/platforms/52xx/mpc52xx_pci.c
···319319320320 tmp = in_be32(&pci_regs->gscr);321321#if 0322322- /* Reset the exteral bus ( internal PCI controller is NOT resetted ) */322322+ /* Reset the exteral bus ( internal PCI controller is NOT reset ) */323323 /* Not necessary and can be a bad thing if for example the bootloader324324 is displaying a splash screen or ... Just left here for325325 documentation purpose if anyone need it */
+1-1
arch/powerpc/platforms/85xx/mpc85xx_cds.c
···9999 pci_read_config_byte(dev, 0x47, &tmp);100100101101 /*102102- * At this point, the harware reset should have triggered.102102+ * At this point, the hardware reset should have triggered.103103 * However, if it doesn't work for some mysterious reason,104104 * just fall through to the default reset below.105105 */
+1-1
arch/powerpc/platforms/powermac/cache.S
···2323 * when going to sleep, when doing a PMU based cpufreq transition,2424 * or when "offlining" a CPU on SMP machines. This code is over2525 * paranoid, but I've had enough issues with various CPU revs and2626- * bugs that I decided it was worth beeing over cautious2626+ * bugs that I decided it was worth being over cautious2727 */28282929_GLOBAL(flush_disable_caches)
+3-3
arch/powerpc/platforms/powermac/feature.c
···198198 if (htw) {199199 /* Side effect: this will also power up the200200 * modem, but it's too messy to figure out on which201201- * ports this controls the tranceiver and on which201201+ * ports this controls the transceiver and on which202202 * it controls the modem203203 */204204 if (trans)···463463 unsigned long flags;464464465465 /* B&W G3 and Yikes don't support that properly (the466466- * sound appear to never come back after beeing shut down).466466+ * sound appear to never come back after being shut down).467467 */468468 if (pmac_mb.model_id == PMAC_TYPE_YOSEMITE ||469469 pmac_mb.model_id == PMAC_TYPE_YIKES)···27702770 * but I'm not too sure it was audited for side-effects on other27712771 * ohare based machines...27722772 * Since I still have difficulties figuring the right way to27732773- * differenciate them all and since that hack was there for a long27732773+ * differentiate them all and since that hack was there for a long27742774 * time, I'll keep it around27752775 */27762776 if (macio_chips[0].type == macio_ohare) {
+3-3
arch/powerpc/platforms/powernv/idle.c
···3535 int rc;36363737 /*3838- * hid0, hid1, hid4, hid5, hmeer and lpcr values are symmetric accross3838+ * hid0, hid1, hid4, hid5, hmeer and lpcr values are symmetric across3939 * all cpus at boot. Get these reg values of current cpu and use the4040- * same accross all cpus.4040+ * same across all cpus.4141 */4242 uint64_t lpcr_val = mfspr(SPRN_LPCR) & ~(u64)LPCR_PECE1;4343 uint64_t hid0_val = mfspr(SPRN_HID0);···185185 * fastsleep workaround needs to be left in 'applied' state on all186186 * the cores. Do this by-187187 * 1. Patching out the call to 'undo' workaround in fastsleep exit path188188- * 2. Sending ipi to all the cores which have atleast one online thread188188+ * 2. Sending ipi to all the cores which have at least one online thread189189 * 3. Patching out the call to 'apply' workaround in fastsleep entry190190 * path191191 * There is no need to send ipi to cores which have all threads
+1-1
arch/powerpc/platforms/powernv/npu-dma.c
···278278279279/*280280 * Enable/disable bypass mode on the NPU. The NPU only supports one281281- * window per link, so bypass needs to be explicity enabled or281281+ * window per link, so bypass needs to be explicitly enabled or282282 * disabled. Unlike for a PHB3 bypass and non-bypass modes can't be283283 * active at the same time.284284 */
+1-1
arch/powerpc/platforms/ps3/interrupt.c
···7878/**7979 * struct ps3_private - a per cpu data structure8080 * @bmp: ps3_bmp structure8181- * @bmp_lock: Syncronize access to bmp.8181+ * @bmp_lock: Synchronize access to bmp.8282 * @ipi_debug_brk_mask: Mask for debug break IPIs8383 * @ppe_id: HV logical_ppe_id8484 * @thread_id: HV thread_id
+1-1
arch/powerpc/platforms/pseries/hvconsole.c
···3131#include <asm/plpar_wrappers.h>32323333/**3434- * hvc_get_chars - retrieve characters from firmware for denoted vterm adatper3434+ * hvc_get_chars - retrieve characters from firmware for denoted vterm adapter3535 * @vtermno: The vtermno or unit_address of the adapter from which to fetch the3636 * data.3737 * @buf: The character buffer into which to put the character data fetched from
+1-1
arch/powerpc/platforms/pseries/setup.c
···515515516516 fwnmi_init();517517518518- /* By default, only probe PCI (can be overriden by rtas_pci) */518518+ /* By default, only probe PCI (can be overridden by rtas_pci) */519519 pci_add_flags(PCI_PROBE_ONLY);520520521521 /* Find and initialize PCI host bridges */
+1-1
arch/powerpc/sysdev/fsl_pci.c
···575575 if (early_find_capability(hose, 0, 0, PCI_CAP_ID_EXP)) {576576 /* use fsl_indirect_read_config for PCIe */577577 hose->ops = &fsl_indirect_pcie_ops;578578- /* For PCIE read HEADER_TYPE to identify controler mode */578578+ /* For PCIE read HEADER_TYPE to identify controller mode */579579 early_read_config_byte(hose, 0, 0, PCI_HEADER_TYPE, &hdr_type);580580 if ((hdr_type & 0x7f) != PCI_HEADER_TYPE_BRIDGE)581581 goto no_bridge;
+1-1
arch/powerpc/sysdev/fsl_rmu.c
···570570 out_be32(&pw->pw_regs->pwsr,571571 (RIO_IPWSR_TE | RIO_IPWSR_QFI | RIO_IPWSR_PWD));572572573573- /* Configure port write contoller for snooping enable all reporting,573573+ /* Configure port write controller for snooping enable all reporting,574574 clear queue full */575575 out_be32(&pw->pw_regs->pwmr,576576 RIO_IPWMR_SEN | RIO_IPWMR_QFIE | RIO_IPWMR_EIE | RIO_IPWMR_CQ);
···22 * arch/powerpc/kernel/mpic.c33 *44 * Driver for interrupt controllers following the OpenPIC standard, the55- * common implementation beeing IBM's MPIC. This driver also can deal55+ * common implementation being IBM's MPIC. This driver also can deal66 * with various broken implementations of this HW.77 *88 * Copyright (C) 2004 Benjamin Herrenschmidt, IBM Corp.···16571657 }16581658 }1659165916601660- /* FSL mpic error interrupt intialization */16601660+ /* FSL mpic error interrupt initialization */16611661 if (mpic->flags & MPIC_FSL_HAS_EIMR)16621662 mpic_err_int_init(mpic, MPIC_FSL_ERR_INT);16631663}