| /linux/arch/arm/mach-omap2/ |
| H A D | omap-smp.c | 1 // SPDX-License-Identifier: GPL-2.0-only 3 * OMAP4 SMP source file. It contains platform specific functions 4 * needed for the linux smp kernel. 11 * Platform file needed for the OMAP4 SMP. This file is based on arm 12 * realview smp platform. 17 #include <linux/smp.h> 19 #include <linux/irqchip/arm-gic.h> 25 #include "omap-secure.h" 26 #include "omap-wakeupgen.h" 87 * BIT(27) - Disables streaming. All write-allocate lines allocate in in omap5_erratum_workaround_801819() [all …]
|
| /linux/arch/powerpc/include/asm/ |
| H A D | mpic_msgr.h | 1 /* SPDX-License-Identifier: GPL-2.0-only */ 3 * Copyright 2011-2012, Meador Inge, Mentor Graphics Corporation. 11 #include <asm/smp.h> 69 * The given 32-bit message is written to the given message 75 out_be32(msgr->base, message); in mpic_msgr_write() 82 * Returns the 32-bit value currently in the given message register. 88 return in_be32(msgr->base); in mpic_msgr_read() 113 out_be32(msgr->base, 1 << get_hard_smp_processor_id(cpu_num)); in mpic_msgr_set_destination() 120 * 0 is returned if this message register is not capable of receiving 126 return msgr->irq; in mpic_msgr_get_irq()
|
| /linux/arch/arm/mach-mstar/ |
| H A D | mstarv7.c | 1 // SPDX-License-Identifier: GPL-2.0 17 * In the u-boot code the area these registers are in is 22 * for both u-boot and linux share calls to "flush the miu pipe". 24 * the state is right before DMA capable devices try to read 85 return -EINVAL; in mstarv7_boot_secondary() 91 return -ENODEV; in mstarv7_boot_secondary() 128 .smp = smp_ops(mstarv7_smp_ops),
|
| /linux/arch/arm/ |
| H A D | Kconfig | 1 # SPDX-License-Identifier: GPL-2.0 50 # https://github.com/llvm/llvm-project/commit/d130f402642fba3d065aacb506cb061c899558de 70 select GENERIC_CLOCKEVENTS_BROADCAST if SMP 71 select GENERIC_IRQ_IPI if SMP 88 select HAVE_ARCH_JUMP_LABEL if !XIP_KERNEL && !CPU_ENDIAN_BE32 && MMU && (!PREEMPT_RT || !SMP) 138 select MMU_GATHER_RCU_TABLE_FREE if SMP && ARM_LPAE 168 The ARM series is a line of low-power-consumption RISC chip designs 170 handhelds such as the Compaq IPAQ. ARM-based PCs are no longer 171 manufactured, but legacy ARM-based PC hardware remains popular in 179 relocations. The combined range is -/+ 256 MiB, which is usually [all …]
|
| /linux/Documentation/core-api/ |
| H A D | genericirq.rst | 7 :Copyright: |copy| 2005-2010: Thomas Gleixner 8 :Copyright: |copy| 2005-2006: Ingo Molnar 29 __do_IRQ() super-handler, which is able to deal with every type of 36 - Level type 38 - Edge type 40 - Simple type 44 - Fast EOI type 46 In the SMP world of the __do_IRQ() super-handler another type was 49 - Per CPU type 51 This split implementation of high-level IRQ handlers allows us to [all …]
|
| /linux/arch/alpha/kernel/ |
| H A D | smp.c | 1 // SPDX-License-Identifier: GPL-2.0 3 * linux/arch/alpha/kernel/smp.c 5 * 2001-07-09 Phil Ezolt (Phillip.Ezolt@compaq.com) 22 #include <linux/smp.h> 54 /* A collection of per-processor data. */ 78 * per-processor storage. 90 * Ideally sets up per-cpu profiling hooks. Doesn't do much now... 142 /* Call platform-specific callin, if specified */ in smp_callin() 148 current->active_mm = &init_mm; in smp_callin() 168 cpuid, current, current->active_mm)); in smp_callin() [all …]
|
| /linux/arch/xtensa/kernel/ |
| H A D | smp.c | 2 * Xtensa SMP support functions. 8 * Copyright (C) 2008 - 2013 Tensilica Inc. 29 #include <linux/smp.h> 43 # error "The S32C1I option is required for SMP." 116 static int boot_secondary_processors = 1; /* Set with xt-gdb via .xt-gdb */ 145 current->active_mm = mm; in secondary_start_kernel() 173 pr_debug("%s: cpu: %d, run_stall_mask: %lx ---> %lx\n", in mx_cpu_start() 183 pr_debug("%s: cpu: %d, run_stall_mask: %lx ---> %lx\n", in mx_cpu_stop() 227 return -EIO; in boot_secondary() 252 ret = -EIO; in __cpu_up() [all …]
|
| /linux/arch/x86/kernel/ |
| H A D | apm_32.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 2 /* -*- linux-c -*- 4 * Copyright 1994-2001 Stephen Rothwell (sfr@canb.auug.org.au) 16 * (Thanks to Ulrich Windl <Ulrich.Windl@rz.uni-regensburg.de>) 43 * 1.1: support user-space standby and suspend, power off after system 46 * is only incorrect by 30-60mS (vs. 1S previously) (Gabor J. Toth 48 * screen-blanking and gpm (Stephen Rothwell); Linux 1.99.4 49 * 1.2a:Simple change to stop mysterious bug reports with SMP also added 50 * levels to the printk calls. APM is not defined for SMP machines. 63 * <echter@informatik.uni-rostock.de> [all …]
|
| /linux/Documentation/usb/ |
| H A D | usb-serial.rst | 45 -------------------------------------- 58 ----------------------------------------------- 72 This goes against the current documentation for pilot-xfer and other 77 (this is usually /dev/ttyUSB1 if you do not have any other usb-serial 99 Kroah-Hartman at greg@kroah.com 103 ------------------- 115 significant advantage of using USB is speed - I can get 73 to 113 120 contains the necessary packages and a simple step-by-step howto. 127 on Win98. Omit the proxy server part; Linux is quite capable of forwarding 129 iPAQ - disable autosync by going to the Start/Settings/Connections menu [all …]
|
| /linux/Documentation/block/ |
| H A D | blk-mq.rst | 1 .. SPDX-License-Identifier: GPL-2.0 4 Multi-Queue Block IO Queueing Mechanism (blk-mq) 7 The Multi-Queue Block IO Queueing Mechanism is an API to enable fast storage 16 ---------- 26 However, with the development of Solid State Drives and Non-Volatile Memories 27 without mechanical parts nor random access penalty and capable of performing 30 in those devices' design, the multi-queue mechanism was introduced. 33 lock. That did not scale well in SMP systems due to dirty data in cache and the 36 to different CPUs) wanted to perform block IO. Instead of this, the blk-mq API 42 --------- [all …]
|
| /linux/drivers/crypto/ |
| H A D | padlock-aes.c | 1 // SPDX-License-Identifier: GPL-2.0-only 23 #include <linux/smp.h> 74 /* Tells whether the ACE is capable to generate 116 return -EINVAL; in aes_set_key() 119 * If the hardware is capable of generating the extended key in aes_set_key() 123 ctx->D = ctx->E; in aes_set_key() 125 ctx->E[0] = le32_to_cpu(key[0]); in aes_set_key() 126 ctx->E[1] = le32_to_cpu(key[1]); in aes_set_key() 127 ctx->E[2] = le32_to_cpu(key[2]); in aes_set_key() 128 ctx->E[3] = le32_to_cpu(key[3]); in aes_set_key() [all …]
|
| /linux/arch/x86/kernel/cpu/ |
| H A D | amd.c | 1 // SPDX-License-Identifier: GPL-2.0-only 13 #include <linux/platform_data/x86/amd-fch.h> 20 #include <asm/spec-ctrl.h> 21 #include <asm/smp.h> 23 #include <asm/pci-direct.h> 77 * and section 2.6.2 of "AMD-K6 Processor Revision Guide - Model 6" 103 #define CBAR (0xfffc) /* Configuration Base Address (32-bit) */ in init_amd_k5() 106 if (c->x86_model == 9 || c->x86_model == 10) { in init_amd_k5() 117 int mbytes = get_num_physpages() >> (20-PAGE_SHIFT); in init_amd_k6() 119 if (c->x86_model < 6) { in init_amd_k6() [all …]
|
| /linux/mm/ |
| H A D | Kconfig | 1 # SPDX-License-Identifier: GPL-2.0-only 30 compress them into a dynamically allocated RAM-based memory pool. 143 int "Maximum number of physical pages per-zspage" 223 specifically-sized allocations with user-controlled contents 227 user-controlled allocations. This may very slightly increase 229 of extra pages since the bulk of user-controlled allocations 230 are relatively long-lived. 245 Try running: slabinfo -DA 254 to exploit memory-safety vulnerabilities by attacking vulnerable 255 co-located memory objects. Several modes are provided. [all …]
|
| /linux/kernel/ |
| H A D | reboot.c | 1 // SPDX-License-Identifier: GPL-2.0-only 25 * this indicates whether you can reboot with ctrl-alt-del: the default is yes 86 * emergency_restart - reboot the system 110 * register_reboot_notifier - Register function to be called at reboot time 126 * unregister_reboot_notifier - Unregister previously registered reboot notifier 132 * Returns zero on success, or %-ENOENT on failure. 153 return -ENOMEM; in devm_register_reboot_notifier() 174 * register_restart_handler - Register function to be called to reset 177 * @nb->priority: Handler priority. Handlers should follow the 193 * machine_restart function calls do_kernel_restart - see below [all …]
|
| /linux/Documentation/ |
| H A D | memory-barriers.txt | 19 documentation at tools/memory-model/. Nevertheless, even this memory 37 Note also that it is possible that a barrier may be a no-op for an 48 - Device operations. 49 - Guarantees. 53 - Varieties of memory barrier. 54 - What may not be assumed about memory barriers? 55 - Address-dependency barriers (historical). 56 - Control dependencies. 57 - SMP barrier pairing. 58 - Examples of memory barrier sequences. [all …]
|
| /linux/Documentation/scheduler/ |
| H A D | sched-energy.rst | 6 --------------- 25 please refer to its documentation (see Documentation/power/energy-model.rst). 29 ----------------------------- 32 - energy = [joule] (resource like a battery on powered devices) 33 - power = energy/time = [joule/second] = [watt] 39 -------------------- 45 ----------- 49 optimization objective to the current performance-only objective for the 50 scheduler. This alternative considers two objectives: energy-efficiency and 54 implications of its decisions rather than blindly applying energy-saving [all …]
|
| /linux/Documentation/livepatch/ |
| H A D | module-elf-format.rst | 16 Formerly, livepatch required separate architecture-specific code to write 17 relocations. However, arch-specific code to write relocations already 19 code. So, instead of duplicating code and re-implementing what the module 21 loader to perform the all the arch-specific relocation work. Specifically, 26 of arch-specific code required to port livepatch to a particular 34 selected from OS-specific ranges according to the definitions from glibc. 37 ----------------------------------------------------- 39 reference non-exported global symbols and non-included local symbols. 40 Relocations referencing these types of symbols cannot be left in as-is 49 approach required livepatch to supply arch-specific code in order to write [all …]
|
| /linux/drivers/pci/hotplug/ |
| H A D | rpaphp_core.c | 1 // SPDX-License-Identifier: GPL-2.0+ 3 * PCI Hot Plug Controller Driver for RPA-compliant PPC64 platform. 17 #include <linux/smp.h> 23 #include <asm/pci-bridge.h> /* for pci_controller */ 46 * set_attention_status - set attention LED 50 * echo 0 > attention -- set LED OFF 51 * echo 1 > attention -- set LED ON 52 * echo 2 > attention -- set LED ID(identify, light is blinking) 69 rc = rtas_set_indicator(DR_INDICATOR, slot->index, value); in set_attention_status() 71 slot->attention_status = value; in set_attention_status() [all …]
|
| /linux/tools/perf/ |
| H A D | design.txt | 3 ------------------------------ 7 as instructions executed, cachemisses suffered, or branches mis-predicted - 9 trigger interrupts when a threshold number of events have passed - and can 15 provides "virtual" 64-bit counters, regardless of the width of the 72 is divided into 3 bit-fields: 80 machine-specific. 119 will return -EINVAL. 121 More hw_event_types are supported as well, but they are CPU-specific 173 particular counter allowing one to take the round-robin scheduling effect 195 Such (and other) events will be recorded in a ring-buffer, which is [all …]
|
| /linux/arch/m68k/kernel/ |
| H A D | sys_m68k.c | 1 // SPDX-License-Identifier: GPL-2.0 6 * have a non-standard calling sequence on the Linux/m68k 15 #include <linux/smp.h> 45 * This is wrong for sun3 - there PAGE_SIZE is 8Kb, in sys_mmap2() 107 unsigned long tmp = PAGE_SIZE - (addr & ~PAGE_MASK); in cache_flush_040() 112 len -= tmp; in cache_flush_040() 121 len -= tmp; in cache_flush_040() 125 i = (PAGE_SIZE - (paddr & ~PAGE_MASK)) >> 4; in cache_flush_040() 126 while (len--) in cache_flush_040() 153 if (!--i && len) in cache_flush_040() [all …]
|
| /linux/drivers/remoteproc/ |
| H A D | remoteproc_virtio.c | 1 // SPDX-License-Identifier: GPL-2.0-only 3 * Remote processor messaging transport (OMAP platform-specific bits) 8 * Ohad Ben-Cohen <ohad@wizery.com> 12 #include <linux/dma-direct.h> 13 #include <linux/dma-map-ops.h> 14 #include <linux/dma-mapping.h> 31 const struct bus_dma_region *map = from->dma_range_map, *new_map, *r; in copy_dma_range_map() 37 for (r = map; r->size; r++) in copy_dma_range_map() 43 return -ENOMEM; in copy_dma_range_map() 44 to->dma_range_map = new_map; in copy_dma_range_map() [all …]
|
| /linux/drivers/net/ethernet/mellanox/mlx4/ |
| H A D | fw.c | 16 * - Redistributions of source code must retain the above 20 * - Redistributions in binary form must reproduce the above 40 #include <uapi/rdma/mlx4-abi.h> 137 [7] = "FSM (MAC anti-spoofing) support", in dump_dev_cap_flags2() 140 [10] = "TCP/IP offloads/flow-steering for VXLAN support", in dump_dev_cap_flags2() 141 [11] = "MAD DEMUX (Secure-Host) support", in dump_dev_cap_flags2() 158 [28] = "RX-ALL support", in dump_dev_cap_flags2() 192 inbox = mailbox->buf; in mlx4_MOD_STAT_CFG() 194 MLX4_PUT(inbox, cfg->log_pg_sz, MOD_STAT_CFG_PG_SZ_OFFSET); in mlx4_MOD_STAT_CFG() 195 MLX4_PUT(inbox, cfg->log_pg_sz_m, MOD_STAT_CFG_PG_SZ_M_OFFSET); in mlx4_MOD_STAT_CFG() [all …]
|
| /linux/kernel/time/ |
| H A D | tick-broadcast.c | 1 // SPDX-License-Identifier: GPL-2.0 3 * This file contains functions which emulate a local clock-event 6 * Copyright(C) 2005-2006, Linutronix GmbH, Thomas Gleixner <tglx@kernel.org> 7 * Copyright(C) 2005-2007, Red Hat, Inc., Ingo Molnar 8 * Copyright(C) 2006-2007, Timesys Corp., Thomas Gleixner 17 #include <linux/smp.h> 20 #include "tick-internal.h" 80 bc->next_event_forced = 0; in tick_broadcast_start_periodic() 91 if ((newdev->features & CLOCK_EVT_FEAT_DUMMY) || in tick_check_broadcast_device() 92 (newdev->features & CLOCK_EVT_FEAT_PERCPU) || in tick_check_broadcast_device() [all …]
|
| /linux/drivers/platform/x86/lenovo/ |
| H A D | think-lmi.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 5 * Copyright(C) 2019-2021 Lenovo 7 * Original code from Thinkpad-wmi project https://github.com/iksaif/thinkpad-wmi 9 * Distributed under the GPL-2.0 license 24 #include "think-lmi.h" 37 #define LENOVO_BIOS_SETTING_GUID "51F5230E-9677-46CD-A1CF-C0B23EE34DB7" 50 #define LENOVO_SET_BIOS_SETTINGS_GUID "98479A64-33F5-4E33-A707-8E251EBBC3A1" 59 #define LENOVO_SAVE_BIOS_SETTINGS_GUID "6A4B54EF-A5ED-4D33-9455-B0D9B48DF4B3" 68 #define LENOVO_BIOS_PASSWORD_SETTINGS_GUID "8ADB159E-1E32-455C-BC93-308A7ED98246" 73 * - BIOS settings cannot be changed at the same boot as power-on [all …]
|
| /linux/kernel/sched/ |
| H A D | syscalls.c | 1 // SPDX-License-Identifier: GPL-2.0-only 7 * Copyright (C) 1991-2002 Linus Torvalds 8 * Copyright (C) 1998-2024 Ingo Molnar, Red Hat 24 prio = MAX_DL_PRIO - 1; in __normal_prio() 26 prio = MAX_RT_PRIO - 1 - rt_prio; in __normal_prio() 35 * without taking RT-inheritance into account. Might be 42 return __normal_prio(p->policy, p->rt_priority, PRIO_TO_NICE(p->static_prio)); in normal_prio() 50 * RT-boosted. If not then it returns p->normal_prio. 54 p->normal_prio = normal_prio(p); in effective_prio() 60 if (!rt_or_dl_prio(p->prio)) in effective_prio() [all …]
|