From: Michael Neuling <mikey@neuling.org>
To: Breno Leitao <leitao@debian.org>, linuxppc-dev@lists.ozlabs.org
Cc: Cyril Bur <cyrilbur@gmail.com>
Subject: Re: [PATCH v2 3/4] powerpc/tm: Adjust tm_reclaim_thread() parameters
Date: Thu, 16 Aug 2018 09:48:02 +1000 [thread overview]
Message-ID: <1cbbde5731af43a5122a2e03656e6fc8e252f9ee.camel@neuling.org> (raw)
In-Reply-To: <1529362784-14194-3-git-send-email-leitao@debian.org>
On Mon, 2018-06-18 at 19:59 -0300, Breno Leitao wrote:
> From: Cyril Bur <cyrilbur@gmail.com>
>=20
> tm_reclaim_thread() doesn't use the parameter anymore, both callers have
> to bother getting it as they have no need for a struct thread_info
> either.
>=20
> It was previously used but became unused in commit
> dc3106690b20 ("powerpc: tm: Always use fp_state and vr_state to store liv=
e
> registers")
>=20
> Just remove it and adjust the callers.
>=20
> Signed-off-by: Cyril Bur <cyrilbur@gmail.com>
> Signed-off-by: Breno Leitao <leitao@debian.org>
Acked-by: Michael Neuling <mikey@neuling.org.>
> ---
> arch/powerpc/kernel/process.c | 7 +++----
> 1 file changed, 3 insertions(+), 4 deletions(-)
>=20
> diff --git a/arch/powerpc/kernel/process.c b/arch/powerpc/kernel/process.=
c
> index 9ef4aea9fffe..f8beee03f00a 100644
> --- a/arch/powerpc/kernel/process.c
> +++ b/arch/powerpc/kernel/process.c
> @@ -866,8 +866,7 @@ static inline bool tm_enabled(struct task_struct *tsk=
)
> return tsk && tsk->thread.regs && (tsk->thread.regs->msr & MSR_TM);
> }
> =20
> -static void tm_reclaim_thread(struct thread_struct *thr,
> - struct thread_info *ti, uint8_t cause)
> +static void tm_reclaim_thread(struct thread_struct *thr, uint8_t cause)
> {
> /*
> * Use the current MSR TM suspended bit to track if we have
> @@ -914,7 +913,7 @@ static void tm_reclaim_thread(struct thread_struct *t=
hr,
> void tm_reclaim_current(uint8_t cause)
> {
> tm_enable();
> - tm_reclaim_thread(¤t->thread, current_thread_info(), cause);
> + tm_reclaim_thread(¤t->thread, cause);
> }
> =20
> static inline void tm_reclaim_task(struct task_struct *tsk)
> @@ -945,7 +944,7 @@ static inline void tm_reclaim_task(struct task_struct
> *tsk)
> thr->regs->ccr, thr->regs->msr,
> thr->regs->trap);
> =20
> - tm_reclaim_thread(thr, task_thread_info(tsk), TM_CAUSE_RESCHED);
> + tm_reclaim_thread(thr, TM_CAUSE_RESCHED);
> =20
> TM_DEBUG("--- tm_reclaim on pid %d complete\n",
> tsk->pid);
next prev parent reply other threads:[~2018-08-16 11:57 UTC|newest]
Thread overview: 19+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-06-15 17:37 [PATCH 1/3] powerpc/tm: Remove msr_tm_active() Breno Leitao
2018-06-15 17:42 ` [PATCH 2/3] powerpc/tm: Fix HTM documentation Breno Leitao
2018-06-15 17:42 ` [PATCH 3/3] powerpc/tm: Remove struct thread_info param from tm_reclaim_thread() Breno Leitao
2018-06-15 20:06 ` [PATCH 1/3] powerpc/tm: Remove msr_tm_active() kbuild test robot
2018-06-18 22:59 ` [PATCH v2 1/4] " Breno Leitao
2018-06-18 22:59 ` [PATCH v2 2/4] powerpc/tm: Fix HTM documentation Breno Leitao
2018-08-15 23:46 ` Michael Neuling
2018-09-20 4:20 ` [v2,2/4] " Michael Ellerman
2018-06-18 22:59 ` [PATCH v2 3/4] powerpc/tm: Adjust tm_reclaim_thread() parameters Breno Leitao
2018-08-15 23:48 ` Michael Neuling [this message]
2018-06-18 22:59 ` [PATCH v2 4/4] powerpc/tm: Do not recheckpoint non-tm task Breno Leitao
2018-08-15 23:50 ` Michael Neuling
2018-08-16 14:19 ` Breno Leitao
2018-08-15 23:46 ` [PATCH v2 1/4] powerpc/tm: Remove msr_tm_active() Michael Neuling
2018-08-16 17:21 ` [PATCH v3] " Breno Leitao
2018-10-04 6:14 ` [v3] " Michael Ellerman
2018-08-17 0:49 ` [PATCH v2 1/4] " Michael Ellerman
2018-08-17 12:26 ` Breno Leitao
2018-08-21 6:33 ` Michael Ellerman
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1cbbde5731af43a5122a2e03656e6fc8e252f9ee.camel@neuling.org \
--to=mikey@neuling.org \
--cc=cyrilbur@gmail.com \
--cc=leitao@debian.org \
--cc=linuxppc-dev@lists.ozlabs.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).