未验证 提交 fd8ef68c 编写于 作者: B BigWhiteDog 提交者: GitHub

Merge pull request #5 from LvNA-system/small_patch

remove unused code in task_struct and switch_to
......@@ -85,12 +85,6 @@ do { \
struct task_struct *__prev = (prev); \
struct task_struct *__next = (next); \
csr_write(0x9c0, __next->dsid); \
if (debug_install) { \
cp_reg_w(SIZES,smp_processor_id(),__next->sizes); \
cp_reg_w(INC,smp_processor_id(),__next->inc); \
cp_reg_w(FREQ,smp_processor_id(),__next->freq); \
cp_reg_w(DSID,smp_processor_id(),__next->dsid); \
}\
__switch_to_aux(__prev, __next); \
((last) = __switch_to(__prev, __next)); \
} while (0)
......
......@@ -601,9 +601,6 @@ struct task_struct {
#ifdef CONFIG_CGROUP_DSID
unsigned int dsid;
unsigned int sizes;
unsigned int freq;
unsigned int inc;
#endif
/* -1 unrunnable, 0 runnable, >0 stopped: */
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册