summaryrefslogtreecommitdiff
path: root/Documentation/usb/usbdevfs-drop-permissions.c
diff options
context:
space:
mode:
authorQuanyang Wang <quanyang.wang@windriver.com>2019-10-22 11:23:28 +0800
committerMichal Simek <michal.simek@xilinx.com>2020-01-08 15:21:09 +0100
commit6c6b3f1f260b24dc0ab9cbbf369e4fa36819ab8b (patch)
treeda3dca568d3c978031b997e1baf7500b98056580 /Documentation/usb/usbdevfs-drop-permissions.c
parente42617b825f8073569da76dc4510bfa019b1c35a (diff)
ARM: zynq: use physical cpuid in zynq_slcr_cpu_stop/start
When kernel booting, it will create a cpuid map between the logical cpus and physical cpus. In a normal boot, the cpuid map is as below: Physical Logical 0 ==> 0 1 ==> 1 But in kdump, there is a condition that the crash happens at the physical cpu1, and the crash kernel will run at the physical cpu1 too, so the cpuid map in crash kernel is as below: Physical Logical 1 ==> 0 0 ==> 1 The functions zynq_slcr_cpu_stop/start is to stop/start the physical cpus, the parameter cpu should be the physical cpuid. So use cpu_logical_map to translate the logical cpuid to physical cpuid. Or else the logical cpu0(physical cpu1) will stop itself and the processor will hang. Signed-off-by: Quanyang Wang <quanyang.wang@windriver.com> Tested-by: Michal Simek <michal.simek@xilinx.com> Signed-off-by: Michal Simek <michal.simek@xilinx.com>
Diffstat (limited to 'Documentation/usb/usbdevfs-drop-permissions.c')
0 files changed, 0 insertions, 0 deletions