Skip to content

Commit 268ba09

Browse files
committed
Merge tag 'for-5.16/parisc-6' of git://git.kernel.org/pub/scm/linux/kernel/git/deller/parisc-linux
Pull parisc fixes from Helge Deller: "Some bug and warning fixes: - Fix "make install" to use debians "installkernel" script which is now in /usr/sbin - Fix the bindeb-pkg make target by giving the correct KBUILD_IMAGE file name - Fix compiler warnings by annotating parisc agp init functions with __init - Fix timekeeping on SMP machines with dual-core CPUs - Enable some more config options in the 64-bit defconfig" * tag 'for-5.16/parisc-6' of git://git.kernel.org/pub/scm/linux/kernel/git/deller/parisc-linux: parisc: Mark cr16 CPU clocksource unstable on all SMP machines parisc: Fix "make install" on newer debian releases parisc/agp: Annotate parisc agp init functions with __init parisc: Enable sata sil, audit and usb support on 64-bit defconfig parisc: Fix KBUILD_IMAGE for self-extracting kernel
2 parents 9442070 + afdb4a5 commit 268ba09

File tree

5 files changed

+30
-26
lines changed

5 files changed

+30
-26
lines changed

arch/parisc/Makefile

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,12 @@
1515
# Mike Shaver, Helge Deller and Martin K. Petersen
1616
#
1717

18+
ifdef CONFIG_PARISC_SELF_EXTRACT
19+
boot := arch/parisc/boot
20+
KBUILD_IMAGE := $(boot)/bzImage
21+
else
1822
KBUILD_IMAGE := vmlinuz
23+
endif
1924

2025
NM = sh $(srctree)/arch/parisc/nm
2126
CHECKFLAGS += -D__hppa__=1

arch/parisc/configs/generic-64bit_defconfig

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,9 @@
11
CONFIG_LOCALVERSION="-64bit"
22
# CONFIG_LOCALVERSION_AUTO is not set
3+
CONFIG_KERNEL_LZ4=y
34
CONFIG_SYSVIPC=y
45
CONFIG_POSIX_MQUEUE=y
6+
CONFIG_AUDIT=y
57
CONFIG_BSD_PROCESS_ACCT=y
68
CONFIG_BSD_PROCESS_ACCT_V3=y
79
CONFIG_TASKSTATS=y
@@ -35,6 +37,7 @@ CONFIG_MODVERSIONS=y
3537
CONFIG_BLK_DEV_INTEGRITY=y
3638
CONFIG_BINFMT_MISC=m
3739
# CONFIG_COMPACTION is not set
40+
CONFIG_MEMORY_FAILURE=y
3841
CONFIG_NET=y
3942
CONFIG_PACKET=y
4043
CONFIG_UNIX=y
@@ -65,12 +68,15 @@ CONFIG_SCSI_ISCSI_ATTRS=y
6568
CONFIG_SCSI_SRP_ATTRS=y
6669
CONFIG_ISCSI_BOOT_SYSFS=y
6770
CONFIG_SCSI_MPT2SAS=y
68-
CONFIG_SCSI_LASI700=m
71+
CONFIG_SCSI_LASI700=y
6972
CONFIG_SCSI_SYM53C8XX_2=y
7073
CONFIG_SCSI_ZALON=y
7174
CONFIG_SCSI_QLA_ISCSI=m
7275
CONFIG_SCSI_DH=y
7376
CONFIG_ATA=y
77+
CONFIG_SATA_SIL=y
78+
CONFIG_SATA_SIS=y
79+
CONFIG_SATA_VIA=y
7480
CONFIG_PATA_NS87415=y
7581
CONFIG_PATA_SIL680=y
7682
CONFIG_ATA_GENERIC=y
@@ -79,6 +85,7 @@ CONFIG_MD_LINEAR=m
7985
CONFIG_BLK_DEV_DM=m
8086
CONFIG_DM_RAID=m
8187
CONFIG_DM_UEVENT=y
88+
CONFIG_DM_AUDIT=y
8289
CONFIG_FUSION=y
8390
CONFIG_FUSION_SPI=y
8491
CONFIG_FUSION_SAS=y
@@ -196,10 +203,15 @@ CONFIG_FB_MATROX_G=y
196203
CONFIG_FB_MATROX_I2C=y
197204
CONFIG_FB_MATROX_MAVEN=y
198205
CONFIG_FB_RADEON=y
206+
CONFIG_LOGO=y
207+
# CONFIG_LOGO_LINUX_CLUT224 is not set
199208
CONFIG_HIDRAW=y
200209
CONFIG_HID_PID=y
201210
CONFIG_USB_HIDDEV=y
202211
CONFIG_USB=y
212+
CONFIG_USB_EHCI_HCD=y
213+
CONFIG_USB_OHCI_HCD=y
214+
CONFIG_USB_OHCI_HCD_PLATFORM=y
203215
CONFIG_UIO=y
204216
CONFIG_UIO_PDRV_GENIRQ=m
205217
CONFIG_UIO_AEC=m

arch/parisc/install.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,7 @@ verify "$3"
3939
if [ -n "${INSTALLKERNEL}" ]; then
4040
if [ -x ~/bin/${INSTALLKERNEL} ]; then exec ~/bin/${INSTALLKERNEL} "$@"; fi
4141
if [ -x /sbin/${INSTALLKERNEL} ]; then exec /sbin/${INSTALLKERNEL} "$@"; fi
42+
if [ -x /usr/sbin/${INSTALLKERNEL} ]; then exec /usr/sbin/${INSTALLKERNEL} "$@"; fi
4243
fi
4344

4445
# Default install

arch/parisc/kernel/time.c

Lines changed: 8 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -249,30 +249,16 @@ void __init time_init(void)
249249
static int __init init_cr16_clocksource(void)
250250
{
251251
/*
252-
* The cr16 interval timers are not syncronized across CPUs on
253-
* different sockets, so mark them unstable and lower rating on
254-
* multi-socket SMP systems.
252+
* The cr16 interval timers are not syncronized across CPUs, even if
253+
* they share the same socket.
255254
*/
256255
if (num_online_cpus() > 1 && !running_on_qemu) {
257-
int cpu;
258-
unsigned long cpu0_loc;
259-
cpu0_loc = per_cpu(cpu_data, 0).cpu_loc;
260-
261-
for_each_online_cpu(cpu) {
262-
if (cpu == 0)
263-
continue;
264-
if ((cpu0_loc != 0) &&
265-
(cpu0_loc == per_cpu(cpu_data, cpu).cpu_loc))
266-
continue;
267-
268-
/* mark sched_clock unstable */
269-
clear_sched_clock_stable();
270-
271-
clocksource_cr16.name = "cr16_unstable";
272-
clocksource_cr16.flags = CLOCK_SOURCE_UNSTABLE;
273-
clocksource_cr16.rating = 0;
274-
break;
275-
}
256+
/* mark sched_clock unstable */
257+
clear_sched_clock_stable();
258+
259+
clocksource_cr16.name = "cr16_unstable";
260+
clocksource_cr16.flags = CLOCK_SOURCE_UNSTABLE;
261+
clocksource_cr16.rating = 0;
276262
}
277263

278264
/* register at clocksource framework */

drivers/char/agp/parisc-agp.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -281,7 +281,7 @@ agp_ioc_init(void __iomem *ioc_regs)
281281
return 0;
282282
}
283283

284-
static int
284+
static int __init
285285
lba_find_capability(int cap)
286286
{
287287
struct _parisc_agp_info *info = &parisc_agp_info;
@@ -366,7 +366,7 @@ parisc_agp_setup(void __iomem *ioc_hpa, void __iomem *lba_hpa)
366366
return error;
367367
}
368368

369-
static int
369+
static int __init
370370
find_quicksilver(struct device *dev, void *data)
371371
{
372372
struct parisc_device **lba = data;
@@ -378,7 +378,7 @@ find_quicksilver(struct device *dev, void *data)
378378
return 0;
379379
}
380380

381-
static int
381+
static int __init
382382
parisc_agp_init(void)
383383
{
384384
extern struct sba_device *sba_list;

0 commit comments

Comments
 (0)