Skip to content

Commit 8223164

Browse files
committed
Merge branch 'parisc-3.14' of git://git.kernel.org/pub/scm/linux/kernel/git/deller/parisc-linux
Pull parisc updates from Helge Deller: - revert parts of the latest patch regarding font selection with STICON console - wire up the utimes() syscall for parisc - remove the unused parisc tmpalias code and unnecessary arch*relax defines * 'parisc-3.14' of git://git.kernel.org/pub/scm/linux/kernel/git/deller/parisc-linux: parisc: locks: remove redundant arch_*_relax operations parisc: wire up sys_utimes parisc: Remove unused CONFIG_PARISC_TMPALIAS code partly revert commit 8a10bc9: parisc/sti_console: prefer Linux fonts over built-in ROM fonts
2 parents 56f1f4b + a34fe10 commit 8223164

File tree

6 files changed

+6
-84
lines changed

6 files changed

+6
-84
lines changed

arch/parisc/include/asm/page.h

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -32,17 +32,6 @@ void copy_page_asm(void *to, void *from);
3232
void copy_user_page(void *vto, void *vfrom, unsigned long vaddr,
3333
struct page *pg);
3434

35-
/* #define CONFIG_PARISC_TMPALIAS */
36-
37-
#ifdef CONFIG_PARISC_TMPALIAS
38-
void clear_user_highpage(struct page *page, unsigned long vaddr);
39-
#define clear_user_highpage clear_user_highpage
40-
struct vm_area_struct;
41-
void copy_user_highpage(struct page *to, struct page *from,
42-
unsigned long vaddr, struct vm_area_struct *vma);
43-
#define __HAVE_ARCH_COPY_USER_HIGHPAGE
44-
#endif
45-
4635
/*
4736
* These are used to make use of C type-checking..
4837
*/

arch/parisc/include/asm/spinlock.h

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -191,8 +191,4 @@ static __inline__ int arch_write_can_lock(arch_rwlock_t *rw)
191191
#define arch_read_lock_flags(lock, flags) arch_read_lock(lock)
192192
#define arch_write_lock_flags(lock, flags) arch_write_lock(lock)
193193

194-
#define arch_spin_relax(lock) cpu_relax()
195-
#define arch_read_relax(lock) cpu_relax()
196-
#define arch_write_relax(lock) cpu_relax()
197-
198194
#endif /* __ASM_SPINLOCK_H */

arch/parisc/include/uapi/asm/unistd.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -828,13 +828,13 @@
828828
#define __NR_finit_module (__NR_Linux + 333)
829829
#define __NR_sched_setattr (__NR_Linux + 334)
830830
#define __NR_sched_getattr (__NR_Linux + 335)
831+
#define __NR_utimes (__NR_Linux + 336)
831832

832-
#define __NR_Linux_syscalls (__NR_sched_getattr + 1)
833+
#define __NR_Linux_syscalls (__NR_utimes + 1)
833834

834835

835836
#define __IGNORE_select /* newselect */
836837
#define __IGNORE_fadvise64 /* fadvise64_64 */
837-
#define __IGNORE_utimes /* utime */
838838

839839

840840
#define HPUX_GATEWAY_ADDR 0xC0000004

arch/parisc/kernel/cache.c

Lines changed: 0 additions & 64 deletions
Original file line numberDiff line numberDiff line change
@@ -581,67 +581,3 @@ flush_cache_page(struct vm_area_struct *vma, unsigned long vmaddr, unsigned long
581581
__flush_cache_page(vma, vmaddr, PFN_PHYS(pfn));
582582
}
583583
}
584-
585-
#ifdef CONFIG_PARISC_TMPALIAS
586-
587-
void clear_user_highpage(struct page *page, unsigned long vaddr)
588-
{
589-
void *vto;
590-
unsigned long flags;
591-
592-
/* Clear using TMPALIAS region. The page doesn't need to
593-
be flushed but the kernel mapping needs to be purged. */
594-
595-
vto = kmap_atomic(page);
596-
597-
/* The PA-RISC 2.0 Architecture book states on page F-6:
598-
"Before a write-capable translation is enabled, *all*
599-
non-equivalently-aliased translations must be removed
600-
from the page table and purged from the TLB. (Note
601-
that the caches are not required to be flushed at this
602-
time.) Before any non-equivalent aliased translation
603-
is re-enabled, the virtual address range for the writeable
604-
page (the entire page) must be flushed from the cache,
605-
and the write-capable translation removed from the page
606-
table and purged from the TLB." */
607-
608-
purge_kernel_dcache_page_asm((unsigned long)vto);
609-
purge_tlb_start(flags);
610-
pdtlb_kernel(vto);
611-
purge_tlb_end(flags);
612-
preempt_disable();
613-
clear_user_page_asm(vto, vaddr);
614-
preempt_enable();
615-
616-
pagefault_enable(); /* kunmap_atomic(addr, KM_USER0); */
617-
}
618-
619-
void copy_user_highpage(struct page *to, struct page *from,
620-
unsigned long vaddr, struct vm_area_struct *vma)
621-
{
622-
void *vfrom, *vto;
623-
unsigned long flags;
624-
625-
/* Copy using TMPALIAS region. This has the advantage
626-
that the `from' page doesn't need to be flushed. However,
627-
the `to' page must be flushed in copy_user_page_asm since
628-
it can be used to bring in executable code. */
629-
630-
vfrom = kmap_atomic(from);
631-
vto = kmap_atomic(to);
632-
633-
purge_kernel_dcache_page_asm((unsigned long)vto);
634-
purge_tlb_start(flags);
635-
pdtlb_kernel(vto);
636-
pdtlb_kernel(vfrom);
637-
purge_tlb_end(flags);
638-
preempt_disable();
639-
copy_user_page_asm(vto, vfrom, vaddr);
640-
flush_dcache_page_asm(__pa(vto), vaddr);
641-
preempt_enable();
642-
643-
pagefault_enable(); /* kunmap_atomic(addr, KM_USER1); */
644-
pagefault_enable(); /* kunmap_atomic(addr, KM_USER0); */
645-
}
646-
647-
#endif /* CONFIG_PARISC_TMPALIAS */

arch/parisc/kernel/syscall_table.S

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -431,6 +431,7 @@
431431
ENTRY_SAME(finit_module)
432432
ENTRY_SAME(sched_setattr)
433433
ENTRY_SAME(sched_getattr) /* 335 */
434+
ENTRY_COMP(utimes)
434435

435436
/* Nothing yet */
436437

lib/fonts/Kconfig

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ if FONT_SUPPORT
99

1010
config FONTS
1111
bool "Select compiled-in fonts"
12-
depends on FRAMEBUFFER_CONSOLE
12+
depends on FRAMEBUFFER_CONSOLE || STI_CONSOLE
1313
help
1414
Say Y here if you would like to use fonts other than the default
1515
your frame buffer console usually use.
@@ -22,7 +22,7 @@ config FONTS
2222

2323
config FONT_8x8
2424
bool "VGA 8x8 font" if FONTS
25-
depends on FRAMEBUFFER_CONSOLE
25+
depends on FRAMEBUFFER_CONSOLE || STI_CONSOLE
2626
default y if !SPARC && !FONTS
2727
help
2828
This is the "high resolution" font for the VGA frame buffer (the one
@@ -45,7 +45,7 @@ config FONT_8x16
4545

4646
config FONT_6x11
4747
bool "Mac console 6x11 font (not supported by all drivers)" if FONTS
48-
depends on FRAMEBUFFER_CONSOLE
48+
depends on FRAMEBUFFER_CONSOLE || STI_CONSOLE
4949
default y if !SPARC && !FONTS && MAC
5050
help
5151
Small console font with Macintosh-style high-half glyphs. Some Mac

0 commit comments

Comments
 (0)