mirror of
https://github.com/linux-msm/laptops-kernel.git
synced 2026-08-13 14:19:53 -07:00
powerpc: fix typos in comments
Various spelling mistakes in comments. Detected with the help of Coccinelle. Signed-off-by: Julia Lawall <Julia.Lawall@inria.fr> Reviewed-by: Joel Stanley <joel@jms.id.au> Signed-off-by: Michael Ellerman <mpe@ellerman.id.au> Link: https://lore.kernel.org/r/20220430185654.5855-1-Julia.Lawall@inria.fr
This commit is contained in:
committed by
Michael Ellerman
parent
c14d31bae3
commit
1fd02f6605
@@ -70,7 +70,7 @@ static void hotfoot_fixups(void)
|
||||
|
||||
printf("Fixing devtree for 4M Flash\n");
|
||||
|
||||
/* First fix up the base addresse */
|
||||
/* First fix up the base address */
|
||||
getprop(devp, "reg", regs, sizeof(regs));
|
||||
regs[0] = 0;
|
||||
regs[1] = 0xffc00000;
|
||||
|
||||
@@ -404,7 +404,7 @@ static int ppc_xts_decrypt(struct skcipher_request *req)
|
||||
|
||||
/*
|
||||
* Algorithm definitions. Disabling alignment (cra_alignmask=0) was chosen
|
||||
* because the e500 platform can handle unaligned reads/writes very efficently.
|
||||
* because the e500 platform can handle unaligned reads/writes very efficiently.
|
||||
* This improves IPsec thoughput by another few percent. Additionally we assume
|
||||
* that AES context is always aligned to at least 8 bytes because it is created
|
||||
* with kmalloc() in the crypto infrastructure
|
||||
|
||||
@@ -2025,7 +2025,7 @@ static struct cpu_spec * __init setup_cpu_spec(unsigned long offset,
|
||||
* oprofile_cpu_type already has a value, then we are
|
||||
* possibly overriding a real PVR with a logical one,
|
||||
* and, in that case, keep the current value for
|
||||
* oprofile_cpu_type. Futhermore, let's ensure that the
|
||||
* oprofile_cpu_type. Furthermore, let's ensure that the
|
||||
* fix for the PMAO bug is enabled on compatibility mode.
|
||||
*/
|
||||
if (old.oprofile_cpu_type != NULL) {
|
||||
|
||||
@@ -27,7 +27,7 @@ int set_dawr(int nr, struct arch_hw_breakpoint *brk)
|
||||
dawrx |= (brk->type & (HW_BRK_TYPE_PRIV_ALL)) >> 3;
|
||||
/*
|
||||
* DAWR length is stored in field MDR bits 48:53. Matches range in
|
||||
* doublewords (64 bits) baised by -1 eg. 0b000000=1DW and
|
||||
* doublewords (64 bits) biased by -1 eg. 0b000000=1DW and
|
||||
* 0b111111=64DW.
|
||||
* brk->hw_len is in bytes.
|
||||
* This aligns up to double word size, shifts and does the bias.
|
||||
|
||||
@@ -1329,7 +1329,7 @@ int eeh_pe_set_option(struct eeh_pe *pe, int option)
|
||||
|
||||
/*
|
||||
* EEH functionality could possibly be disabled, just
|
||||
* return error for the case. And the EEH functinality
|
||||
* return error for the case. And the EEH functionality
|
||||
* isn't expected to be disabled on one specific PE.
|
||||
*/
|
||||
switch (option) {
|
||||
@@ -1804,7 +1804,7 @@ static int eeh_debugfs_break_device(struct pci_dev *pdev)
|
||||
* PE freeze. Using the in_8() accessor skips the eeh detection hook
|
||||
* so the freeze hook so the EEH Detection machinery won't be
|
||||
* triggered here. This is to match the usual behaviour of EEH
|
||||
* where the HW will asyncronously freeze a PE and it's up to
|
||||
* where the HW will asynchronously freeze a PE and it's up to
|
||||
* the kernel to notice and deal with it.
|
||||
*
|
||||
* 3. Turn Memory space back on. This is more important for VFs
|
||||
|
||||
@@ -143,7 +143,7 @@ int __eeh_send_failure_event(struct eeh_pe *pe)
|
||||
int eeh_send_failure_event(struct eeh_pe *pe)
|
||||
{
|
||||
/*
|
||||
* If we've manually supressed recovery events via debugfs
|
||||
* If we've manually suppressed recovery events via debugfs
|
||||
* then just drop it on the floor.
|
||||
*/
|
||||
if (eeh_debugfs_no_recover) {
|
||||
|
||||
@@ -1671,8 +1671,8 @@ int __init setup_fadump(void)
|
||||
}
|
||||
/*
|
||||
* Use subsys_initcall_sync() here because there is dependency with
|
||||
* crash_save_vmcoreinfo_init(), which mush run first to ensure vmcoreinfo initialization
|
||||
* is done before regisering with f/w.
|
||||
* crash_save_vmcoreinfo_init(), which must run first to ensure vmcoreinfo initialization
|
||||
* is done before registering with f/w.
|
||||
*/
|
||||
subsys_initcall_sync(setup_fadump);
|
||||
#else /* !CONFIG_PRESERVE_FA_DUMP */
|
||||
|
||||
@@ -99,7 +99,7 @@ static unsigned long get_plt_size(const Elf32_Ehdr *hdr,
|
||||
|
||||
/* Sort the relocation information based on a symbol and
|
||||
* addend key. This is a stable O(n*log n) complexity
|
||||
* alogrithm but it will reduce the complexity of
|
||||
* algorithm but it will reduce the complexity of
|
||||
* count_relocs() to linear complexity O(n)
|
||||
*/
|
||||
sort((void *)hdr + sechdrs[i].sh_offset,
|
||||
|
||||
@@ -194,7 +194,7 @@ static unsigned long get_stubs_size(const Elf64_Ehdr *hdr,
|
||||
|
||||
/* Sort the relocation information based on a symbol and
|
||||
* addend key. This is a stable O(n*log n) complexity
|
||||
* alogrithm but it will reduce the complexity of
|
||||
* algorithm but it will reduce the complexity of
|
||||
* count_relocs() to linear complexity O(n)
|
||||
*/
|
||||
sort((void *)sechdrs[i].sh_addr,
|
||||
@@ -361,7 +361,7 @@ static inline int create_ftrace_stub(struct ppc64_stub_entry *entry,
|
||||
entry->jump[1] |= PPC_HA(reladdr);
|
||||
entry->jump[2] |= PPC_LO(reladdr);
|
||||
|
||||
/* Eventhough we don't use funcdata in the stub, it's needed elsewhere. */
|
||||
/* Even though we don't use funcdata in the stub, it's needed elsewhere. */
|
||||
entry->funcdata = func_desc(addr);
|
||||
entry->magic = STUB_MAGIC;
|
||||
|
||||
|
||||
@@ -1688,7 +1688,7 @@ EXPORT_SYMBOL_GPL(pcibios_scan_phb);
|
||||
static void fixup_hide_host_resource_fsl(struct pci_dev *dev)
|
||||
{
|
||||
int i, class = dev->class >> 8;
|
||||
/* When configured as agent, programing interface = 1 */
|
||||
/* When configured as agent, programming interface = 1 */
|
||||
int prog_if = dev->class & 0xf;
|
||||
|
||||
if ((class == PCI_CLASS_PROCESSOR_POWERPC ||
|
||||
|
||||
@@ -244,7 +244,7 @@ EXPORT_SYMBOL(of_create_pci_dev);
|
||||
* @dev: pci_dev structure for the bridge
|
||||
*
|
||||
* of_scan_bus() calls this routine for each PCI bridge that it finds, and
|
||||
* this routine in turn call of_scan_bus() recusively to scan for more child
|
||||
* this routine in turn call of_scan_bus() recursively to scan for more child
|
||||
* devices.
|
||||
*/
|
||||
void of_scan_pci_bridge(struct pci_dev *dev)
|
||||
|
||||
@@ -305,7 +305,7 @@ static void __giveup_vsx(struct task_struct *tsk)
|
||||
unsigned long msr = tsk->thread.regs->msr;
|
||||
|
||||
/*
|
||||
* We should never be ssetting MSR_VSX without also setting
|
||||
* We should never be setting MSR_VSX without also setting
|
||||
* MSR_FP and MSR_VEC
|
||||
*/
|
||||
WARN_ON((msr & MSR_VSX) && !((msr & MSR_FP) && (msr & MSR_VEC)));
|
||||
@@ -643,7 +643,7 @@ static void do_break_handler(struct pt_regs *regs)
|
||||
return;
|
||||
}
|
||||
|
||||
/* Otherwise findout which DAWR caused exception and disable it. */
|
||||
/* Otherwise find out which DAWR caused exception and disable it. */
|
||||
wp_get_instr_detail(regs, &instr, &type, &size, &ea);
|
||||
|
||||
for (i = 0; i < nr_wp_slots(); i++) {
|
||||
|
||||
@@ -3416,7 +3416,7 @@ unsigned long __init prom_init(unsigned long r3, unsigned long r4,
|
||||
*
|
||||
* PowerMacs use a different mechanism to spin CPUs
|
||||
*
|
||||
* (This must be done after instanciating RTAS)
|
||||
* (This must be done after instantiating RTAS)
|
||||
*/
|
||||
if (of_platform != PLATFORM_POWERMAC)
|
||||
prom_hold_cpus();
|
||||
|
||||
@@ -174,7 +174,7 @@ int ptrace_get_reg(struct task_struct *task, int regno, unsigned long *data)
|
||||
|
||||
/*
|
||||
* softe copies paca->irq_soft_mask variable state. Since irq_soft_mask is
|
||||
* no more used as a flag, lets force usr to alway see the softe value as 1
|
||||
* no more used as a flag, lets force usr to always see the softe value as 1
|
||||
* which means interrupts are not soft disabled.
|
||||
*/
|
||||
if (IS_ENABLED(CONFIG_PPC64) && regno == PT_SOFTE) {
|
||||
|
||||
@@ -120,7 +120,7 @@ static struct kmem_cache *flash_block_cache = NULL;
|
||||
/*
|
||||
* Local copy of the flash block list.
|
||||
*
|
||||
* The rtas_firmware_flash_list varable will be
|
||||
* The rtas_firmware_flash_list variable will be
|
||||
* set once the data is fully read.
|
||||
*
|
||||
* For convenience as we build the list we use virtual addrs,
|
||||
|
||||
@@ -279,7 +279,7 @@ static int show_cpuinfo(struct seq_file *m, void *v)
|
||||
proc_freq / 1000000, proc_freq % 1000000);
|
||||
|
||||
/* If we are a Freescale core do a simple check so
|
||||
* we dont have to keep adding cases in the future */
|
||||
* we don't have to keep adding cases in the future */
|
||||
if (PVR_VER(pvr) & 0x8000) {
|
||||
switch (PVR_VER(pvr)) {
|
||||
case 0x8000: /* 7441/7450/7451, Voyager */
|
||||
|
||||
@@ -123,7 +123,7 @@ static long notrace __unsafe_setup_sigcontext(struct sigcontext __user *sc,
|
||||
#endif
|
||||
struct pt_regs *regs = tsk->thread.regs;
|
||||
unsigned long msr = regs->msr;
|
||||
/* Force usr to alway see softe as 1 (interrupts enabled) */
|
||||
/* Force usr to always see softe as 1 (interrupts enabled) */
|
||||
unsigned long softe = 0x1;
|
||||
|
||||
BUG_ON(tsk != current);
|
||||
|
||||
@@ -1102,7 +1102,7 @@ void __init smp_prepare_cpus(unsigned int max_cpus)
|
||||
DBG("smp_prepare_cpus\n");
|
||||
|
||||
/*
|
||||
* setup_cpu may need to be called on the boot cpu. We havent
|
||||
* setup_cpu may need to be called on the boot cpu. We haven't
|
||||
* spun any cpus up but lets be paranoid.
|
||||
*/
|
||||
BUG_ON(boot_cpuid != smp_processor_id());
|
||||
|
||||
@@ -828,7 +828,7 @@ static void __read_persistent_clock(struct timespec64 *ts)
|
||||
static int first = 1;
|
||||
|
||||
ts->tv_nsec = 0;
|
||||
/* XXX this is a litle fragile but will work okay in the short term */
|
||||
/* XXX this is a little fragile but will work okay in the short term */
|
||||
if (first) {
|
||||
first = 0;
|
||||
if (ppc_md.time_init)
|
||||
@@ -973,7 +973,7 @@ void secondary_cpu_time_init(void)
|
||||
*/
|
||||
start_cpu_decrementer();
|
||||
|
||||
/* FIME: Should make unrelatred change to move snapshot_timebase
|
||||
/* FIME: Should make unrelated change to move snapshot_timebase
|
||||
* call here ! */
|
||||
register_decrementer_clockevent(smp_processor_id());
|
||||
}
|
||||
|
||||
@@ -56,7 +56,7 @@
|
||||
* solved by also having a SMP watchdog where all CPUs check all other
|
||||
* CPUs heartbeat.
|
||||
*
|
||||
* The SMP checker can detect lockups on other CPUs. A gobal "pending"
|
||||
* The SMP checker can detect lockups on other CPUs. A global "pending"
|
||||
* cpumask is kept, containing all CPUs which enable the watchdog. Each
|
||||
* CPU clears their pending bit in their heartbeat timer. When the bitmask
|
||||
* becomes empty, the last CPU to clear its pending bit updates a global
|
||||
|
||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user