Unverified Commit a413cd0d authored by openeuler-ci-bot's avatar openeuler-ci-bot Committed by Gitee
Browse files

!425 update patches for sw64 architecture

Merge Pull Request from: @guzitao 
 
These patches generally cover the following tasks:

1.optimize kernel cores, remove unused codes, fix compile errors
2.fixes for perf, iommu
3.add support, add CONFIG_THREAD_INFO_IN_TASK support, support SIMD IO access in guest, add DVFS support 
 
Link:https://gitee.com/openeuler/kernel/pulls/425

 

Reviewed-by: default avatarZheng Zengkai <zhengzengkai@huawei.com>
Signed-off-by: default avatarZheng Zengkai <zhengzengkai@huawei.com>
parents d25fd25f 6ab80d4c
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -107,6 +107,7 @@ config SW64
	select SET_FS
	select SPARSEMEM_EXTREME if SPARSEMEM
	select SWIOTLB
	select THREAD_INFO_IN_TASK

config LOCKDEP_SUPPORT
	def_bool y
+3 −3622

File changed.

Preview size limit exceeded, changes collapsed.

+1 −3
Original line number Diff line number Diff line
@@ -11,8 +11,6 @@

struct clk;

extern struct cpufreq_frequency_table sw64_clockmod_table[];

extern char curruent_policy[CPUFREQ_NAME_LEN];

struct clk_ops {
@@ -44,7 +42,7 @@ struct clk {

int clk_init(void);

void sw64_set_rate(unsigned long rate);
void sw64_set_rate(unsigned int index);

struct clk *sw64_clk_get(struct device *dev, const char *id);

+12 −3
Original line number Diff line number Diff line
@@ -2,9 +2,18 @@
#ifndef _ASM_SW64_CURRENT_H
#define _ASM_SW64_CURRENT_H

#include <linux/thread_info.h>
#ifndef __ASSEMBLY__

struct task_struct;
static __always_inline struct task_struct *get_current(void)
{
	register struct task_struct *tp __asm__("$8");

	return tp;
}

#define get_current()	(current_thread_info()->task)
#define current get_current()

#endif /* __ASSEMBLY__ */

#endif /* _ASM_SW64_CURRENT_H */
+4 −0
Original line number Diff line number Diff line
@@ -6,6 +6,10 @@
#include <asm/early_ioremap.h>
#ifdef CONFIG_EFI
extern void efi_init(void);
extern unsigned long entSuspend;

#define SLEEP_ENTRY_GUID        EFI_GUID(0x59cb76bb, 0x9c3a, 0x4c8f, 0xbd, 0x5c, 0xc0, 0x0f, 0x20, 0x61, 0x18, 0x4b)

#else
#define efi_init()
#define efi_idmap_init()
Loading